aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@gmail.com>2019-01-03 19:08:03 -0300
committerLauro Moura <lauromoura@gmail.com>2019-01-03 19:08:03 -0300
commit6c82817b60a92356b177a4ae51b58a34d7c5481a (patch)
tree53e19dcacf819adfdda309b61979fcd794a29813
parentdemonstrate application and SimpleApplication (diff)
downloadexamples-devs/lauromoura/app_poc.tar.gz
csharp: Try getting arguments from loopdevs/lauromoura/app_poc
-rw-r--r--apps/csharp/life/src/life_main.cs15
1 files changed, 13 insertions, 2 deletions
diff --git a/apps/csharp/life/src/life_main.cs b/apps/csharp/life/src/life_main.cs
index 6f98c67a..1b79306b 100644
--- a/apps/csharp/life/src/life_main.cs
+++ b/apps/csharp/life/src/life_main.cs
@@ -40,6 +40,17 @@ public class LifeWindow : Efl.Csharp.Application
public override void args(Efl.LoopArguments args)
{
+
+ var arguments = args.Argv;
+
+ Console.WriteLine($"Argument list size is {arguments.Count()}");
+
+ foreach (String arg in arguments) {
+ Console.WriteLine($"Arg is {arg}");
+ }
+
+ if (!args.Initialization)
+ return;
win = new Efl.Ui.Win(null, (Efl.Ui.Win ewin) => {
ewin.SetWinType(Efl.Ui.WinType.Basic);
ewin.SetText("EFL Life");
@@ -82,10 +93,10 @@ public class LifeWindow : Efl.Csharp.Application
public class Example
{
- public static void Main()
+ public static void Main(string[] args)
{
var lifeWin = new LifeWindow();
- lifeWin.launch();
+ lifeWin.launch(args);
}
}