csharp: Try getting arguments from loop
This commit is contained in:
parent
aa29d0b370
commit
6c82817b60
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue