summaryrefslogtreecommitdiff
path: root/tutorial/csharp/hello-world/src/hello-world.cs
diff options
context:
space:
mode:
Diffstat (limited to 'tutorial/csharp/hello-world/src/hello-world.cs')
-rw-r--r--tutorial/csharp/hello-world/src/hello-world.cs13
1 files changed, 6 insertions, 7 deletions
diff --git a/tutorial/csharp/hello-world/src/hello-world.cs b/tutorial/csharp/hello-world/src/hello-world.cs
index 123b799..a490f92 100644
--- a/tutorial/csharp/hello-world/src/hello-world.cs
+++ b/tutorial/csharp/hello-world/src/hello-world.cs
@@ -11,13 +11,12 @@ public class Example
11 Efl.All.Init(Efl.Components.Ui); 11 Efl.All.Init(Efl.Components.Ui);
12 12
13 // Create a window and initialize it 13 // Create a window and initialize it
14 Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.AppMain, (Efl.Ui.Win ewin) => { 14 Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.AppMain);
15 // Set the window's title 15 // Set the window's title
16 ewin.SetText("Hello World"); 16 win.SetText("Hello World");
17 // Request that the window is automatically hidden when the "close" 17 // Request that the window is automatically hidden when the "close"
18 // button is pressed 18 // button is pressed
19 ewin.SetAutohide(true); 19 win.SetAutohide(true);
20 });
21 // Window size must be explicitly set, otherwise it will be invisible 20 // Window size must be explicitly set, otherwise it will be invisible
22 // due to its lack of content. 21 // due to its lack of content.
23 win.SetSize(new Eina.Size2D(360, 240)); 22 win.SetSize(new Eina.Size2D(360, 240));