summaryrefslogtreecommitdiff
path: root/reference
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-05-15 12:01:16 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-15 12:01:16 +0200
commit836a9edf7370e9f8f1b1e11bf11997ae88598307 (patch)
tree11c1c8a60697b7bd698df1a35c3f7dae182c96c6 /reference
parent05d9b74e19671b2f8e0290a5b45afa75a2956a8f (diff)
mono examples: Update to latest Efl.Ui.Clickable syntax
Diffstat (limited to 'reference')
-rw-r--r--reference/csharp/ui/src/focus_main.cs4
-rw-r--r--reference/csharp/ui/src/ui_container.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index 43170be1..4ca376e4 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -46,7 +46,7 @@ public class Example : Efl.Csharp.Application
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.FocusChangedEvt += FocusChangedCb;
49 button.ClickedEvt += (object sender, EventArgs e) => { 49 button.ClickedEvt += (object sender, Efl.Ui.IClickableClickedEvt_Args 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);
@@ -57,7 +57,7 @@ public class Example : Efl.Csharp.Application
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.FocusChangedEvt += FocusChangedCb;
60 button.ClickedEvt += (object sender, EventArgs e) => { 60 button.ClickedEvt += (object sender, Efl.Ui.IClickableClickedEvt_Args e) => {
61 Console.WriteLine("Clicked Quit"); 61 Console.WriteLine("Clicked Quit");
62 Efl.Ui.Config.Exit(); 62 Efl.Ui.Config.Exit();
63 }; 63 };
diff --git a/reference/csharp/ui/src/ui_container.cs b/reference/csharp/ui/src/ui_container.cs
index f2e27e6e..1ee439ff 100644
--- a/reference/csharp/ui/src/ui_container.cs
+++ b/reference/csharp/ui/src/ui_container.cs
@@ -98,7 +98,7 @@ public class Example : Efl.Csharp.Application
98 Efl.Ui.Button quit_btn = new Efl.Ui.Button(win); 98 Efl.Ui.Button quit_btn = new Efl.Ui.Button(win);
99 quit_btn.SetText("Quit"); 99 quit_btn.SetText("Quit");
100 quit_btn.SetHintSizeMax(new Eina.Size2D(150, 30)); 100 quit_btn.SetHintSizeMax(new Eina.Size2D(150, 30));
101 quit_btn.ClickedEvt += (object sender, EventArgs e) => { 101 quit_btn.ClickedEvt += (object sender, Efl.Ui.IClickableClickedEvt_Args e) => {
102 // Exit the EFL main loop 102 // Exit the EFL main loop
103 Efl.Ui.Config.Exit(); 103 Efl.Ui.Config.Exit();
104 }; 104 };