예제 #1
0
 public void RemoveTask(Task t)
 {
     tasks.Remove(t);
     fireTasksChanged();
 }
예제 #2
0
 private bool taskIsMatch(Task task, string filter)
 {
     bool match = false;
     match |= Regex.IsMatch(task.Title, filter, RegexOptions.IgnoreCase);
     match |= Regex.IsMatch(task.Description, filter, RegexOptions.IgnoreCase);
     match |= Regex.IsMatch(task.Due, filter, RegexOptions.IgnoreCase);
     return match;
 }
예제 #3
0
 public void AddTask(Task t)
 {
     tasks.Add(t);
     fireTasksChanged();
 }
예제 #4
0
 public TaskDialog(Task t)
 {
     InitializeComponent();
     task = t;
 }