summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-06-19 18:52:44 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-06-19 18:54:31 -0300
commit09927803c3ae312709e4772297ea84a2016da29e (patch)
tree1e014ffc2db3b3c9a2f329d8593fae00cbb62972
parent2ef8894fcd415cdc24d7bc222a9f8425fb8f9f34 (diff)
csharp: Fix compilation of examplesdevs/lauromoura/csharp_examples
Still looking strange, though
-rw-r--r--src/examples/elementary/efl_ui_slider_mono.cs16
-rw-r--r--src/examples/elementary/efl_ui_unit_converter.cs28
2 files changed, 22 insertions, 22 deletions
diff --git a/src/examples/elementary/efl_ui_slider_mono.cs b/src/examples/elementary/efl_ui_slider_mono.cs
index c2a3232f14..1a3b4c51ee 100644
--- a/src/examples/elementary/efl_ui_slider_mono.cs
+++ b/src/examples/elementary/efl_ui_slider_mono.cs
@@ -6,12 +6,12 @@ public class Example
6 public static Efl.Ui.Button CreateButton(Efl.Object parent, 6 public static Efl.Ui.Button CreateButton(Efl.Object parent,
7 string text, 7 string text,
8 int w, int h, 8 int w, int h,
9 EventHandler callback) { 9 EventHandler<Efl.Ui.IClickableClickedEvt_Args> callback) {
10 Efl.Ui.Button button = new Efl.Ui.Button(parent); 10 Efl.Ui.Button button = new Efl.Ui.Button(parent);
11 button.SetText(text); 11 button.SetText(text);
12 button.SetSize(new Eina.Size2D(w, h)); 12 button.SetSize(new Eina.Size2D(w, h));
13 13
14 ((Efl.Ui.Clickable)button).ClickedEvt += callback; 14 button.ClickedEvt += callback;
15 15
16 return button; 16 return button;
17 } 17 }
@@ -35,7 +35,7 @@ public class Example
35 int W = 120; 35 int W = 120;
36 int H = 30; 36 int H = 30;
37 37
38 Efl.All.Init(Efl.Components.Ui); 38 Efl.All.Init(Efl.Csharp.Components.Ui);
39 39
40 Efl.Ui.Win win = new Efl.Ui.Win(null); 40 Efl.Ui.Win win = new Efl.Ui.Win(null);
41 win.SetText("Hello, C#!!"); 41 win.SetText("Hello, C#!!");
@@ -44,11 +44,11 @@ public class Example
44 Efl.Ui.BoxFlow box = new Efl.Ui.BoxFlow(win); 44 Efl.Ui.BoxFlow box = new Efl.Ui.BoxFlow(win);
45 45
46 Efl.Ui.Button button = CreateButton(box, "Click to exit", 120, 30, 46 Efl.Ui.Button button = CreateButton(box, "Click to exit", 120, 30,
47 (object sender, EventArgs e) => { 47 (sender, e) => {
48 Efl.Ui.Config.Exit(); 48 Efl.Ui.Config.Exit();
49 }); 49 });
50 50
51 box.DoPack(button); 51 box.Pack(button);
52 52
53 Efl.Ui.Progressbar bar = new Efl.Ui.Progressbar(box); 53 Efl.Ui.Progressbar bar = new Efl.Ui.Progressbar(box);
54 bar.SetSize(new Eina.Size2D(W, H)); 54 bar.SetSize(new Eina.Size2D(W, H));
@@ -57,12 +57,12 @@ public class Example
57 Efl.Ui.Slider slider = new Efl.Ui.Slider(box); 57 Efl.Ui.Slider slider = new Efl.Ui.Slider(box);
58 slider.SetSize(new Eina.Size2D(W, H)); 58 slider.SetSize(new Eina.Size2D(W, H));
59 59
60 slider.ChangedEvt += (object sender, EventArgs e) => { 60 slider.ChangedEvt += (sender, e) => {
61 bar.SetRangeValue(slider.GetRangeValue()); 61 bar.SetRangeValue(slider.GetRangeValue());
62 }; 62 };
63 63
64 box.DoPack(bar); 64 box.Pack(bar);
65 box.DoPack(slider); 65 box.Pack(slider);
66 66
67 button.SetVisible(true); 67 button.SetVisible(true);
68 box.SetVisible(true); 68 box.SetVisible(true);
diff --git a/src/examples/elementary/efl_ui_unit_converter.cs b/src/examples/elementary/efl_ui_unit_converter.cs
index 3460af3f5f..56c568ec41 100644
--- a/src/examples/elementary/efl_ui_unit_converter.cs
+++ b/src/examples/elementary/efl_ui_unit_converter.cs
@@ -39,19 +39,19 @@ public class Example
39 int H = 30; 39 int H = 30;
40 Eina.Size2D size = new Eina.Size2D(W, H); 40 Eina.Size2D size = new Eina.Size2D(W, H);
41 41
42 Efl.All.Init(Efl.Components.Ui); 42 Efl.All.Init(Efl.Csharp.Components.Ui);
43 43
44 Efl.Ui.Win win = new Efl.Ui.Win(null); 44 Efl.Ui.Win win = new Efl.Ui.Win(null);
45 win.SetText("C# Unit Converter"); 45 win.SetText("C# Unit Converter");
46 win.SetAutohide(true); 46 win.SetAutohide(true);
47 47
48 Efl.Ui.BoxFlow box = new Efl.Ui.BoxFlow(win); 48 Efl.Ui.BoxFlow box = new Efl.Ui.BoxFlow(win);
49 box.SetDirection(Efl.Ui.Dir.Horizontal); 49 box.SetOrientation(Efl.Ui.LayoutOrientation.Horizontal);
50 50
51 Efl.Ui.BoxFlow miles_box = new Efl.Ui.BoxFlow(box); 51 Efl.Ui.BoxFlow miles_box = new Efl.Ui.BoxFlow(box);
52 miles_box.SetDirection(Efl.Ui.Dir.Down); 52 miles_box.SetOrientation(Efl.Ui.LayoutOrientation.Vertical);
53 53
54 box.DoPack(miles_box); 54 box.Pack(miles_box);
55 55
56 Efl.Ui.Text miles_label = new Efl.Ui.Text(miles_box); 56 Efl.Ui.Text miles_label = new Efl.Ui.Text(miles_box);
57 miles_label.SetText("Miles:"); 57 miles_label.SetText("Miles:");
@@ -69,15 +69,15 @@ public class Example
69 miles_button.SetSize(size); 69 miles_button.SetSize(size);
70 miles_button.SetVisible(true); 70 miles_button.SetVisible(true);
71 71
72 miles_box.DoPack(miles_label); 72 miles_box.Pack(miles_label);
73 miles_box.DoPack(miles_input); 73 miles_box.Pack(miles_input);
74 miles_box.DoPack(miles_button); 74 miles_box.Pack(miles_button);
75 75
76 76
77 Efl.Ui.BoxFlow kms_box = new Efl.Ui.BoxFlow(box); 77 Efl.Ui.BoxFlow kms_box = new Efl.Ui.BoxFlow(box);
78 kms_box.SetDirection(Efl.Ui.Dir.Down); 78 kms_box.SetOrientation(Efl.Ui.LayoutOrientation.Vertical);
79 79
80 box.DoPack(kms_box); 80 box.Pack(kms_box);
81 81
82 Efl.Ui.Text kms_label = new Efl.Ui.Text(kms_box); 82 Efl.Ui.Text kms_label = new Efl.Ui.Text(kms_box);
83 kms_label.SetText("Kilometers:"); 83 kms_label.SetText("Kilometers:");
@@ -95,11 +95,11 @@ public class Example
95 kms_button.SetSize(size); 95 kms_button.SetSize(size);
96 kms_button.SetVisible(true); 96 kms_button.SetVisible(true);
97 97
98 kms_box.DoPack(kms_label); 98 kms_box.Pack(kms_label);
99 kms_box.DoPack(kms_input); 99 kms_box.Pack(kms_input);
100 kms_box.DoPack(kms_button); 100 kms_box.Pack(kms_button);
101 101
102 ((Efl.Ui.Clickable)kms_button).ClickedEvt += (object sender, EventArgs e) => { 102 kms_button.ClickedEvt += (sender, 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 ((Efl.Ui.Clickable)miles_button).ClickedEvt += (object sender, EventArgs e) => { 118 miles_button.ClickedEvt += (sender, e) => {
119 try 119 try
120 { 120 {
121 string text = miles_input.GetText(); 121 string text = miles_input.GetText();