diff options
Diffstat (limited to 'tutorial/csharp/hello-gui/src/gui_main.cs')
-rw-r--r-- | tutorial/csharp/hello-gui/src/gui_main.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tutorial/csharp/hello-gui/src/gui_main.cs b/tutorial/csharp/hello-gui/src/gui_main.cs index fc1cf18..a0a40d6 100644 --- a/tutorial/csharp/hello-gui/src/gui_main.cs +++ b/tutorial/csharp/hello-gui/src/gui_main.cs | |||
@@ -3,7 +3,7 @@ using System; | |||
3 | public class Example : Efl.Csharp.Application | 3 | public class Example : Efl.Csharp.Application |
4 | { | 4 | { |
5 | // Callback to quit the application | 5 | // Callback to quit the application |
6 | public static void QuitCb(object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) | 6 | public static void QuitCb(object sender, Efl.Gfx.IEntityVisibilityChangedEventArgs e) |
7 | { | 7 | { |
8 | // Exit the EFL main loop | 8 | // Exit the EFL main loop |
9 | if (e.arg == false) | 9 | if (e.arg == false) |
@@ -20,7 +20,7 @@ public class Example : Efl.Csharp.Application | |||
20 | // button is pressed | 20 | // button is pressed |
21 | win.SetAutohide(true); | 21 | win.SetAutohide(true); |
22 | // Hook to the Hide event | 22 | // Hook to the Hide event |
23 | win.VisibilityChangedEvt += QuitCb; | 23 | win.VisibilityChangedEvent += QuitCb; |
24 | 24 | ||
25 | // Create a box container | 25 | // Create a box container |
26 | var box = new Efl.Ui.Box(win); | 26 | var box = new Efl.Ui.Box(win); |
@@ -48,7 +48,7 @@ public class Example : Efl.Csharp.Application | |||
48 | button.SetText("Quit"); | 48 | button.SetText("Quit"); |
49 | button.SetHintWeight(1.0, 0.1); | 49 | button.SetHintWeight(1.0, 0.1); |
50 | // Set the method to be called when the button is pressed | 50 | // Set the method to be called when the button is pressed |
51 | button.ClickedEvt += (object sender, Efl.Input.IClickableClickedEvt_Args e) => { Efl.App.AppMain.Quit(0); }; | 51 | button.ClickedEvent += (object sender, Efl.Input.IClickableClickedEventArgs e) => { Efl.App.AppMain.Quit(0); }; |
52 | // Add the button to the box container | 52 | // Add the button to the box container |
53 | box.Pack(button); | 53 | box.Pack(button); |
54 | } | 54 | } |