summaryrefslogtreecommitdiff
path: root/reference/csharp/ui/src/ui_custom_widget.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/ui/src/ui_custom_widget.cs')
-rw-r--r--reference/csharp/ui/src/ui_custom_widget.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/reference/csharp/ui/src/ui_custom_widget.cs b/reference/csharp/ui/src/ui_custom_widget.cs
index 03e57af..6cc14d2 100644
--- a/reference/csharp/ui/src/ui_custom_widget.cs
+++ b/reference/csharp/ui/src/ui_custom_widget.cs
@@ -36,7 +36,7 @@ public class Example : Efl.Csharp.Application
36 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic); 36 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
37 win.SetText("Custom widget demo"); 37 win.SetText("Custom widget demo");
38 win.SetAutohide(true); 38 win.SetAutohide(true);
39 win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => { 39 win.VisibilityChangedEvent += (object sender, Efl.Gfx.IEntityVisibilityChangedEventArgs e) => {
40 // Exit the EFL main loop when the window is closed 40 // Exit the EFL main loop when the window is closed
41 if (e.arg == false) 41 if (e.arg == false)
42 Efl.Ui.Config.Exit(); 42 Efl.Ui.Config.Exit();
@@ -46,7 +46,7 @@ public class Example : Efl.Csharp.Application
46 46
47 // Instantiate our custom button widget 47 // Instantiate our custom button widget
48 MyButton btn = new MyButton(win, 99); 48 MyButton btn = new MyButton(win, 99);
49 btn.ClickedEvt += (object sender, Efl.Input.IClickableClickedEvt_Args e) => { 49 btn.ClickedEvent += (object sender, Efl.Input.IClickableClickedEventArgs e) => {
50 // When the button is clicked, change its text 50 // When the button is clicked, change its text
51 MyButton b = (MyButton)sender; 51 MyButton b = (MyButton)sender;
52 b.SetText("Hello!"); 52 b.SetText("Hello!");