summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-03-09 16:00:08 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-03-09 16:00:08 +0100
commit43bb6e3896628a8ac42f5cbb2c5c603c48d18e91 (patch)
treeeefb5ed715cde0d9a39ca7c716d8a49f5e4ffa89
parent679c89d98d93f6853bffccb135eb50447b8efffe (diff)
mono examples: Adapt to latest event names
-rw-r--r--apps/csharp/life/src/life_board.cs2
-rw-r--r--reference/csharp/core/src/core_event.cs2
-rw-r--r--reference/csharp/core/src/core_idler.cs2
-rw-r--r--reference/csharp/core/src/core_poll.cs2
4 files changed, 4 insertions, 4 deletions
diff --git a/apps/csharp/life/src/life_board.cs b/apps/csharp/life/src/life_board.cs
index 26dbf62..61b4d45 100644
--- a/apps/csharp/life/src/life_board.cs
+++ b/apps/csharp/life/src/life_board.cs
@@ -62,7 +62,7 @@ public class LifeBoard
62 { 62 {
63 lifeTimer = new Efl.LoopTimer(win, 0.1); 63 lifeTimer = new Efl.LoopTimer(win, 0.1);
64 64
65 lifeTimer.TickEvt += (object sender, EventArgs ev) => { 65 lifeTimer.TimerTickEvt += (object sender, EventArgs ev) => {
66 Nextgen(); 66 Nextgen();
67 if (this.lifeRender != null) 67 if (this.lifeRender != null)
68 this.lifeRender.Refresh(win); 68 this.lifeRender.Refresh(win);
diff --git a/reference/csharp/core/src/core_event.cs b/reference/csharp/core/src/core_event.cs
index b0caac8..7906f41 100644
--- a/reference/csharp/core/src/core_event.cs
+++ b/reference/csharp/core/src/core_event.cs
@@ -35,7 +35,7 @@ public class Example
35 timer.SetName("Timer"); 35 timer.SetName("Timer");
36 // To count number of timer triggers 36 // To count number of timer triggers
37 int tick_count = 0; 37 int tick_count = 0;
38 timer.TickEvt += (object sender, EventArgs e) => { 38 timer.TimerTickEvt += (object sender, EventArgs e) => {
39 string message = "Tick {0} from {1}: "; 39 string message = "Tick {0} from {1}: ";
40 // Depending on the number of timer ticks, it does a different thing 40 // Depending on the number of timer ticks, it does a different thing
41 switch (tick_count) { 41 switch (tick_count) {
diff --git a/reference/csharp/core/src/core_idler.cs b/reference/csharp/core/src/core_idler.cs
index 7e27279..1a0fb5c 100644
--- a/reference/csharp/core/src/core_idler.cs
+++ b/reference/csharp/core/src/core_idler.cs
@@ -35,7 +35,7 @@ public class Example
35 35
36 // Use a timer to exit the application 36 // Use a timer to exit the application
37 var timer = new Efl.LoopTimer(mainloop, 0.01); 37 var timer = new Efl.LoopTimer(mainloop, 0.01);
38 timer.TickEvt += (object sender, EventArgs e) => { 38 timer.TimerTickEvt += (object sender, EventArgs e) => {
39 Console.WriteLine("TIMER: timer callback called, exiting."); 39 Console.WriteLine("TIMER: timer callback called, exiting.");
40 mainloop.Quit(new Eina.Value(0)); 40 mainloop.Quit(new Eina.Value(0));
41 }; 41 };
diff --git a/reference/csharp/core/src/core_poll.cs b/reference/csharp/core/src/core_poll.cs
index 522a36a..502e08c 100644
--- a/reference/csharp/core/src/core_poll.cs
+++ b/reference/csharp/core/src/core_poll.cs
@@ -34,7 +34,7 @@ public class Example
34 34
35 // Use a timer to exit the application 35 // Use a timer to exit the application
36 var timer = new Efl.LoopTimer(mainloop, 30); 36 var timer = new Efl.LoopTimer(mainloop, 30);
37 timer.TickEvt += (object sender, EventArgs e) => { 37 timer.TimerTickEvt += (object sender, EventArgs e) => {
38 Console.WriteLine("\nTIMER: timer callback called, exiting."); 38 Console.WriteLine("\nTIMER: timer callback called, exiting.");
39 mainloop.Quit(new Eina.Value(0)); 39 mainloop.Quit(new Eina.Value(0));
40 }; 40 };