csharp: Try getting arguments from loop

This commit is contained in:
Lauro Moura 2019-01-03 19:08:03 -03:00
parent aa29d0b370
commit 6c82817b60
1 changed files with 13 additions and 2 deletions

View File

@ -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);
}
}