summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-04-17 11:03:21 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-04-17 11:03:21 +0200
commitf47f1f3672ec35ec9ce5969572a6d4d6f8563125 (patch)
treee55779fa62e1544828ba8e4bdd8343f38c9d2917
parentd4e81b7b65aebcc375f5f3373dc9aff05fb1eae3 (diff)
mono-example: Remove ugly static_cast
Since D8550 apps do not need to use static_cast nor Concrete classes.
-rw-r--r--reference/csharp/ui/src/ui_container.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/reference/csharp/ui/src/ui_container.cs b/reference/csharp/ui/src/ui_container.cs
index 97c1fc7..0cb9c23 100644
--- a/reference/csharp/ui/src/ui_container.cs
+++ b/reference/csharp/ui/src/ui_container.cs
@@ -79,19 +79,19 @@ public class Example : Efl.Csharp.Application
79 79
80 // Create some boxes and set them as the content of the first pane of the container 80 // Create some boxes and set them as the content of the first pane of the container
81 var box = CreateBox(win); 81 var box = CreateBox(win);
82 Efl.IContentConcrete.static_cast(vsplit.GetPart("first")).SetContent(box); 82 (vsplit.GetPart("first") as Efl.IContent).SetContent(box);
83 83
84 // Create a second, horizontally-split panes container and set it as the content of 84 // Create a second, horizontally-split panes container and set it as the content of
85 // the second pane of the first container 85 // the second pane of the first container
86 Efl.Ui.Panes hsplit = new Efl.Ui.Panes(win); 86 Efl.Ui.Panes hsplit = new Efl.Ui.Panes(win);
87 hsplit.SetDirection(Efl.Ui.Dir.Horizontal); 87 hsplit.SetDirection(Efl.Ui.Dir.Horizontal);
88 hsplit.SetSplitRatio(0.85); 88 hsplit.SetSplitRatio(0.85);
89 Efl.IContentConcrete.static_cast(vsplit.GetPart("second")).SetContent(hsplit); 89 (vsplit.GetPart("second") as Efl.IContent).SetContent(hsplit);
90 90
91 // Create a table and set it as the content of the first pane of the horizontal 91 // Create a table and set it as the content of the first pane of the horizontal
92 // container 92 // container
93 var table = CreateTable(win); 93 var table = CreateTable(win);
94 Efl.IContentConcrete.static_cast(hsplit.GetPart("first")).SetContent(table); 94 (hsplit.GetPart("first") as Efl.IContent).SetContent(table);
95 95
96 // Create a button and set it as the content of the second pane of the horizontal 96 // Create a button and set it as the content of the second pane of the horizontal
97 // container 97 // container
@@ -102,7 +102,7 @@ public class Example : Efl.Csharp.Application
102 // Exit the EFL main loop 102 // Exit the EFL main loop
103 Efl.Ui.Config.Exit(); 103 Efl.Ui.Config.Exit();
104 }; 104 };
105 Efl.IContentConcrete.static_cast(hsplit.GetPart("second")).SetContent(quit_btn); 105 (hsplit.GetPart("second") as Efl.IContent).SetContent(quit_btn);
106 } 106 }
107 107
108#if WIN32 108#if WIN32