Ejemplo n.º 1
0
 private void AppBarButton_Click_Delete(object sender, RoutedEventArgs e)
 {
     viewModel.Remove(SelectedItem);
     SelectedItem = null;
     StateChange("Init");
     TodoList.Current.UpdateListViewEmptyVisibility();
     TodoMain.Current.BackgroundChange(null);
     TodoMain.Current.StateFromDetailToList();
     TileGenerator.Update(Database.ViewModel.Collection);
 }
Ejemplo n.º 2
0
 private void Button_Click_Cancel_Delete(object sender, RoutedEventArgs e)
 {
     if (isNew == true)
     {
         this.Clear();
     }
     else
     {
         ViewModel.Remove(TodoList.Current.SelectItem);
     }
 }