summaryrefslogtreecommitdiff
path: root/tutorial/csharp/eo-intro
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-11-06 10:39:14 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2018-12-19 16:51:15 +0100
commitd74a4df9946b69f769cd0ad40d4414c90d19a515 (patch)
tree7d4de6983ac9b319085fd84f559d2f592fc215b3 /tutorial/csharp/eo-intro
parent656b746be7ffb834a31d0a693071f9eebba186c6 (diff)
csharp examples: Adapt to new classes syntax
Summary: Mainly use PascalCase Namespaces and Classes and proper event names. Test Plan: Check all examples still build. Reviewers: lauromoura, vitor.sousa, felipealmeida, bu5hm4n Reviewed By: bu5hm4n Differential Revision: https://phab.enlightenment.org/D7479
Diffstat (limited to 'tutorial/csharp/eo-intro')
-rw-r--r--tutorial/csharp/eo-intro/src/eo_intro_main.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/tutorial/csharp/eo-intro/src/eo_intro_main.cs b/tutorial/csharp/eo-intro/src/eo_intro_main.cs
index 386366d..0a7779a 100644
--- a/tutorial/csharp/eo-intro/src/eo_intro_main.cs
+++ b/tutorial/csharp/eo-intro/src/eo_intro_main.cs
@@ -2,23 +2,23 @@ using System;
2 2
3public class Example 3public class Example
4{ 4{
5 static efl.IModel_Item root, child2; 5 static Efl.ModelItem root, child2;
6 6
7 // Create our test hierarchy 7 // Create our test hierarchy
8 static void ObjCreate() 8 static void ObjCreate()
9 { 9 {
10 // First create a root element 10 // First create a root element
11 root = new efl.Model_Item(null, (efl.IModel_Item eroot) => { 11 root = new Efl.ModelItem(null, (Efl.ModelItem eroot) => {
12 eroot.SetName("Root"); 12 eroot.SetName("Root");
13 }); 13 });
14 14
15 // Create the first child element 15 // Create the first child element
16 new efl.Model_Item(root, (efl.IModel_Item eroot) => { 16 new Efl.ModelItem(root, (Efl.ModelItem eroot) => {
17 eroot.SetName("Child1"); 17 eroot.SetName("Child1");
18 }); 18 });
19 19
20 // Create the second child element, this time, with an extra reference 20 // Create the second child element, this time, with an extra reference
21 child2 = new efl.Model_Item(root, (efl.IModel_Item eroot) => { 21 child2 = new Efl.ModelItem(root, (Efl.ModelItem eroot) => {
22 eroot.SetName("Child2"); 22 eroot.SetName("Child2");
23 }); 23 });
24 } 24 }
@@ -37,7 +37,7 @@ public class Example
37 37
38 public static void Main() 38 public static void Main()
39 { 39 {
40 efl.All.Init(efl.Components.Ui); 40 Efl.All.Init(Efl.Components.Ui);
41 41
42 // Create all objects 42 // Create all objects
43 ObjCreate(); 43 ObjCreate();
@@ -45,6 +45,6 @@ public class Example
45 // Destroy all objects 45 // Destroy all objects
46 ObjDestroy(); 46 ObjDestroy();
47 47
48 efl.All.Shutdown(); 48 Efl.All.Shutdown();
49 } 49 }
50} 50}