summaryrefslogtreecommitdiff
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
parentaa29d0b370119a15b37119cb25ceeffab81bff09 (diff)
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
40 40
41 public override void args(Efl.LoopArguments args) 41 public override void args(Efl.LoopArguments args)
42 { 42 {
43
44 var arguments = args.Argv;
45
46 Console.WriteLine($"Argument list size is {arguments.Count()}");
47
48 foreach (String arg in arguments) {
49 Console.WriteLine($"Arg is {arg}");
50 }
51
52 if (!args.Initialization)
53 return;
43 win = new Efl.Ui.Win(null, (Efl.Ui.Win ewin) => { 54 win = new Efl.Ui.Win(null, (Efl.Ui.Win ewin) => {
44 ewin.SetWinType(Efl.Ui.WinType.Basic); 55 ewin.SetWinType(Efl.Ui.WinType.Basic);
45 ewin.SetText("EFL Life"); 56 ewin.SetText("EFL Life");
@@ -82,10 +93,10 @@ public class LifeWindow : Efl.Csharp.Application
82 93
83public class Example 94public class Example
84{ 95{
85 public static void Main() 96 public static void Main(string[] args)
86 { 97 {
87 var lifeWin = new LifeWindow(); 98 var lifeWin = new LifeWindow();
88 99
89 lifeWin.launch(); 100 lifeWin.launch(args);
90 } 101 }
91} 102}