summaryrefslogtreecommitdiff
path: root/src/examples/elementary/efl_ui_unit_converter.cs
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-16 12:36:51 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-26 10:55:18 -0300
commit628e5ab95029c222e5f2eca3fa9a3702015fb8c1 (patch)
treef819d6e41a6c0981751003a81058affbb4ad986e /src/examples/elementary/efl_ui_unit_converter.cs
parente59e8f0a15a6e1a699c1395e12b9431ea430c2b8 (diff)
efl_mono: Use PascalCase in events
Summary: To deal with events with the same name as some methods (Del, Invalidate, etc), the suffix Evt was added. Thus, now we use obj.ButtonClickedEvt += callback; Instead of obj.BUTTON_CLICKED += cal The argument classes use the same scheme, being called <Evt name>_Args. Depends on D5991 Reviewers: felipealmeida Reviewed By: felipealmeida Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5992
Diffstat (limited to 'src/examples/elementary/efl_ui_unit_converter.cs')
-rw-r--r--src/examples/elementary/efl_ui_unit_converter.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/elementary/efl_ui_unit_converter.cs b/src/examples/elementary/efl_ui_unit_converter.cs
index 91dd318910..a1505a8b2c 100644
--- a/src/examples/elementary/efl_ui_unit_converter.cs
+++ b/src/examples/elementary/efl_ui_unit_converter.cs
@@ -23,7 +23,7 @@ public class Example
23 popup.SetVisible(true); 23 popup.SetVisible(true);
24 popup.SetButton(efl.ui.popup_alert.Button.Positive, "Ok"); 24 popup.SetButton(efl.ui.popup_alert.Button.Positive, "Ok");
25 popup.SetSize(new eina.Size2D(150, 30)); 25 popup.SetSize(new eina.Size2D(150, 30));
26 popup.BUTTON_CLICKED += (object sender, efl.ui.BUTTON_CLICKED_Args e) => { 26 popup.ButtonClickedEvt += (object sender, efl.ui.ButtonClickedEvt_Args e) => {
27 popup.SetParent(null); 27 popup.SetParent(null);
28 popup.Del(); 28 popup.Del();
29 }; 29 };
@@ -99,7 +99,7 @@ public class Example
99 kms_box.Pack(kms_input); 99 kms_box.Pack(kms_input);
100 kms_box.Pack(kms_button); 100 kms_box.Pack(kms_button);
101 101
102 kms_button.CLICKED += (object sender, EventArgs e) => { 102 kms_button.ClickedEvt += (object sender, EventArgs e) => {
103 try 103 try
104 { 104 {
105 string text = kms_input.GetText(); 105 string text = kms_input.GetText();
@@ -115,7 +115,7 @@ public class Example
115 } 115 }
116 }; 116 };
117 117
118 miles_button.CLICKED += (object sender, EventArgs e) => { 118 miles_button.ClickedEvt += (object sender, EventArgs e) => {
119 try 119 try
120 { 120 {
121 string text = miles_input.GetText(); 121 string text = miles_input.GetText();