예제 #1
0
 private void ExecuteRemoveListCommand(ViewModels.TodoListViewModel list)
 {
     try
     {
         var index = TodoLists.IndexOf(list);
         TodoLists.Remove(list);
         SaveCommand.Execute(null);
     }
     catch { }
 }
예제 #2
0
 public void RemoveTodoList(TodoList todoList)
 {
     TodoLists.Remove(todoList);
     SaveChanges();
 }