private void yesDeleteCategoryButton_Click(object sender, RoutedEventArgs e) { MenuItemFactory.Items.Remove(menuItemTemp); MenuItems.Remove(menuItemTemp); var temp = PhotoItemFactory.AllLists.Find(p => p.category == menuItemTemp.Category); PhotoItemFactory.AllLists.Remove(temp); goBack(); DeleteCategoryButtonFlyout.Hide(); //Hassan added NEW NEW }
private void noDeleteCategoryButton_Click(object sender, RoutedEventArgs e) { DeleteCategoryButtonFlyout.Hide(); //Hassan added NEW NEW }