Exemple #1
0
 private void OnTaskDeleted(Task obj)
 {
     Tasks.Remove(obj);
     if (SelectedDate.ToShortDateString() == obj.TaskDate.ToShortDateString())
     {
         SelectedDateTasks.Remove(obj);
     }
 }
Exemple #2
0
 private void OnTaskAdded(Task obj)
 {
     Tasks.Add(obj);
     if (SelectedDate.ToShortDateString() == obj.TaskDate.ToShortDateString())
     {
         SelectedDateTasks.Insert(0, obj);
     }
 }