Beispiel #1
0
 private void Btn_Remove_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (SelectedGrid != null)
         {
             RemovePlan removePlan = new RemovePlan();
             removePlan.Owner   = mainWindow;
             removePlan.Plan    = SelectedGrid.SelectedItem as DB.WeeklyPlan;
             mainWindow.Opacity = 0.5;
             removePlan.WindowStartupLocation = WindowStartupLocation.CenterOwner;
             if (removePlan.ShowDialog() == false)
             {
                 Date_picker_CalendarClosed(sender, e);
                 mainWindow.UpdateScreens();
             }
         }
     }
     catch (Exception ex)
     {
         DB.AddLog(new Log {
             error_page = "ucweeklyplan", error_text = ex.Message, log_user = User.id
         });
     }
 }
 private void Btn_Remove_Click(object sender, RoutedEventArgs e)
 {
     if (plan_list.SelectedItem != null)
     {
         RemovePlan removePlan = new RemovePlan();
         removePlan.Owner   = mainWindow;
         removePlan.Plan    = plan_list.SelectedItem as DB.WeeklyPlan;
         mainWindow.Opacity = 0.5;
         removePlan.WindowStartupLocation = WindowStartupLocation.CenterOwner;
         if (removePlan.ShowDialog() == false)
         {
             mainWindow.UpdateScreens();
             plan_list.ItemsSource = DB.GetWeeklyPlanDetail(User, Order);
         }
     }
 }