Beispiel #1
0
 private void OnClickCategoryDeleteButton(object sender, RoutedEventArgs e)
 {
     CategoryCreateGrid.Visibility = Visibility.Hidden;
     if (databaseController.DeleteCategory((string)((Label)((Grid)TypesListBox.SelectedItem).Children[0]).Content))
     {
         TypesListBox.Items.Remove(TypesListBox.SelectedItem);
         UpdateItemsList();
         UpdateStatisticItemsList();
     }
 }