private bool CompleteTask() { if (!Paused) { GLib.Source.Remove(pulseTimeoutId); if (timers.ContainsKey(task.TimerID)) { timers.Remove(task.TimerID); } if (task.State != TaskState.Inactive) { return(false); } task.Complete(); ShowCompletedTaskStatus(); tree.Refilter(); return(false); // Don't automatically call this handler again } return(true); }
public void Refilter(ICategory selectedCategory) { filteredTasks.Refilter(); treeView.Refilter(selectedCategory); }