summaryrefslogtreecommitdiff
path: root/reference/csharp/ui/src/focus_main.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/ui/src/focus_main.cs')
-rw-r--r--reference/csharp/ui/src/focus_main.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index 4ced2a8..ae943ba 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -13,7 +13,7 @@ public class Example : Efl.Csharp.Application
13 var win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic); 13 var win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
14 win.SetText("Focus example"); 14 win.SetText("Focus example");
15 win.SetAutohide(true); 15 win.SetAutohide(true);
16 win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => { 16 win.VisibilityChangedEvent += (object sender, Efl.Gfx.IEntityVisibilityChangedEventArgs e) => {
17 // Exit the EFL main loop 17 // Exit the EFL main loop
18 if (e.arg == false) 18 if (e.arg == false)
19 Efl.Ui.Config.Exit(); 19 Efl.Ui.Config.Exit();
@@ -32,7 +32,7 @@ public class Example : Efl.Csharp.Application
32 checkbox.SetText("Check " + i); 32 checkbox.SetText("Check " + i);
33 checkbox.SetHintFill(false, false); 33 checkbox.SetHintFill(false, false);
34 checkbox.SetHintAlign(0.5, 0.5); 34 checkbox.SetHintAlign(0.5, 0.5);
35 checkbox.FocusChangedEvt += FocusChangedCb; 35 checkbox.FocusChangedEvent += FocusChangedCb;
36 vbox.Pack(checkbox); 36 vbox.Pack(checkbox);
37 if (i == 0) first_checkbox = checkbox; 37 if (i == 0) first_checkbox = checkbox;
38 }; 38 };
@@ -45,8 +45,8 @@ public class Example : Efl.Csharp.Application
45 // Create a "Focus Mover" button 45 // Create a "Focus Mover" button
46 var button = new Efl.Ui.Button(hbox); 46 var button = new Efl.Ui.Button(hbox);
47 button.SetText("Focus mover"); 47 button.SetText("Focus mover");
48 button.FocusChangedEvt += FocusChangedCb; 48 button.FocusChangedEvent += FocusChangedCb;
49 button.ClickedEvt += (object sender, Efl.Input.IClickableClickedEvt_Args e) => { 49 button.ClickedEvent += (object sender, Efl.Input.IClickableClickedEventArgs e) => {
50 Console.WriteLine("Clicked Focus Mover"); 50 Console.WriteLine("Clicked Focus Mover");
51 // Manually transfer focus to the first check box 51 // Manually transfer focus to the first check box
52 Efl.Ui.Focus.Util.Focus(first_checkbox); 52 Efl.Ui.Focus.Util.Focus(first_checkbox);
@@ -56,8 +56,8 @@ public class Example : Efl.Csharp.Application
56 // Create a Quit button 56 // Create a Quit button
57 button = new Efl.Ui.Button(hbox); 57 button = new Efl.Ui.Button(hbox);
58 button.SetText("Quit"); 58 button.SetText("Quit");
59 button.FocusChangedEvt += FocusChangedCb; 59 button.FocusChangedEvent += FocusChangedCb;
60 button.ClickedEvt += (object sender, Efl.Input.IClickableClickedEvt_Args e) => { 60 button.ClickedEvent += (object sender, Efl.Input.IClickableClickedEventArgs e) => {
61 Console.WriteLine("Clicked Quit"); 61 Console.WriteLine("Clicked Quit");
62 Efl.Ui.Config.Exit(); 62 Efl.Ui.Config.Exit();
63 }; 63 };