public void Start() { State = TaskCompleteTimerState.Running; NotifyChange(); GLib.Timeout.Add(interval, PixbufTimerElapsed); GLib.Timeout.Add(1000, SecondsTimerElapsed); }
void StopTimer(bool canceled) { State = TaskCompleteTimerState.Stopped; CurrentAnimPixbuf = null; var task = model.GetValue(iter, 0) as ITask; if (task == null) { return; } NotifyChange(); if (TimerStopped != null) { TimerStopped(this, new TaskCompleteTimerStoppedEventArgs(task, canceled)); } }
public void Pause() { State = TaskCompleteTimerState.Paused; NotifyChange(); }