summaryrefslogtreecommitdiff
path: root/reference/csharp/core/src/core_idler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/core/src/core_idler.cs')
-rw-r--r--reference/csharp/core/src/core_idler.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/reference/csharp/core/src/core_idler.cs b/reference/csharp/core/src/core_idler.cs
index 224511b..458a15d 100644
--- a/reference/csharp/core/src/core_idler.cs
+++ b/reference/csharp/core/src/core_idler.cs
@@ -17,19 +17,19 @@ public class Example : Efl.Csharp.Application
17 var mainloop = Efl.App.AppMain; 17 var mainloop = Efl.App.AppMain;
18 18
19 // Register to all Idle events 19 // Register to all Idle events
20 mainloop.IdleEnterEvt += (object sender, EventArgs e) => { 20 mainloop.IdleEnterEvent += (object sender, EventArgs e) => {
21 Console.WriteLine("IDLE ENTER: Entering idle state."); 21 Console.WriteLine("IDLE ENTER: Entering idle state.");
22 }; 22 };
23 mainloop.IdleEvt += (object sender, EventArgs e) => { 23 mainloop.IdleEvent += (object sender, EventArgs e) => {
24 Console.WriteLine("IDLE: Executing idler callback while in idle state."); 24 Console.WriteLine("IDLE: Executing idler callback while in idle state.");
25 }; 25 };
26 mainloop.IdleExitEvt += (object sender, EventArgs e) => { 26 mainloop.IdleExitEvent += (object sender, EventArgs e) => {
27 Console.WriteLine("IDLE EXIT: Leaving idle state."); 27 Console.WriteLine("IDLE EXIT: Leaving idle state.");
28 }; 28 };
29 29
30 // Use a timer to exit the application 30 // Use a timer to exit the application
31 var timer = new Efl.LoopTimer(mainloop, 0.02); 31 var timer = new Efl.LoopTimer(mainloop, 0.02);
32 timer.TimerTickEvt += (object sender, EventArgs e) => { 32 timer.TimerTickEvent += (object sender, EventArgs e) => {
33 Console.WriteLine("TIMER: timer callback called, exiting."); 33 Console.WriteLine("TIMER: timer callback called, exiting.");
34 mainloop.Quit(0); 34 mainloop.Quit(0);
35 }; 35 };