Beispiel #1
0
            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);
            }
Beispiel #2
0
 public void Refilter(ICategory selectedCategory)
 {
     filteredTasks.Refilter();
     treeView.Refilter(selectedCategory);
 }