summaryrefslogtreecommitdiff
path: root/reference/csharp/core/src/core_poll.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/core/src/core_poll.cs')
-rw-r--r--reference/csharp/core/src/core_poll.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/reference/csharp/core/src/core_poll.cs b/reference/csharp/core/src/core_poll.cs
index 0032223..9f233c1 100644
--- a/reference/csharp/core/src/core_poll.cs
+++ b/reference/csharp/core/src/core_poll.cs
@@ -16,19 +16,19 @@ public class Example : Efl.Csharp.Application
16 var mainloop = Efl.App.AppMain; 16 var mainloop = Efl.App.AppMain;
17 17
18 // Register to all Poll events 18 // Register to all Poll events
19 mainloop.PollLowEvt += (object sender, EventArgs e) => { 19 mainloop.PollLowEvent += (object sender, EventArgs e) => {
20 Console.Write("L"); 20 Console.Write("L");
21 }; 21 };
22 mainloop.PollMediumEvt += (object sender, EventArgs e) => { 22 mainloop.PollMediumEvent += (object sender, EventArgs e) => {
23 Console.Write("M"); 23 Console.Write("M");
24 }; 24 };
25 mainloop.PollHighEvt += (object sender, EventArgs e) => { 25 mainloop.PollHighEvent += (object sender, EventArgs e) => {
26 Console.Write("."); 26 Console.Write(".");
27 }; 27 };
28 28
29 // Use a timer to exit the application 29 // Use a timer to exit the application
30 var timer = new Efl.LoopTimer(mainloop, 30); 30 var timer = new Efl.LoopTimer(mainloop, 30);
31 timer.TimerTickEvt += (object sender, EventArgs e) => { 31 timer.TimerTickEvent += (object sender, EventArgs e) => {
32 Console.WriteLine("\nTIMER: timer callback called, exiting."); 32 Console.WriteLine("\nTIMER: timer callback called, exiting.");
33 mainloop.Quit(0); 33 mainloop.Quit(0);
34 }; 34 };