mono examples: Adapt to latest event names
This commit is contained in:
parent
679c89d98d
commit
43bb6e3896
|
@ -62,7 +62,7 @@ public class LifeBoard
|
|||
{
|
||||
lifeTimer = new Efl.LoopTimer(win, 0.1);
|
||||
|
||||
lifeTimer.TickEvt += (object sender, EventArgs ev) => {
|
||||
lifeTimer.TimerTickEvt += (object sender, EventArgs ev) => {
|
||||
Nextgen();
|
||||
if (this.lifeRender != null)
|
||||
this.lifeRender.Refresh(win);
|
||||
|
|
|
@ -35,7 +35,7 @@ public class Example
|
|||
timer.SetName("Timer");
|
||||
// To count number of timer triggers
|
||||
int tick_count = 0;
|
||||
timer.TickEvt += (object sender, EventArgs e) => {
|
||||
timer.TimerTickEvt += (object sender, EventArgs e) => {
|
||||
string message = "Tick {0} from {1}: ";
|
||||
// Depending on the number of timer ticks, it does a different thing
|
||||
switch (tick_count) {
|
||||
|
|
|
@ -35,7 +35,7 @@ public class Example
|
|||
|
||||
// Use a timer to exit the application
|
||||
var timer = new Efl.LoopTimer(mainloop, 0.01);
|
||||
timer.TickEvt += (object sender, EventArgs e) => {
|
||||
timer.TimerTickEvt += (object sender, EventArgs e) => {
|
||||
Console.WriteLine("TIMER: timer callback called, exiting.");
|
||||
mainloop.Quit(new Eina.Value(0));
|
||||
};
|
||||
|
|
|
@ -34,7 +34,7 @@ public class Example
|
|||
|
||||
// Use a timer to exit the application
|
||||
var timer = new Efl.LoopTimer(mainloop, 30);
|
||||
timer.TickEvt += (object sender, EventArgs e) => {
|
||||
timer.TimerTickEvt += (object sender, EventArgs e) => {
|
||||
Console.WriteLine("\nTIMER: timer callback called, exiting.");
|
||||
mainloop.Quit(new Eina.Value(0));
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue