private void Btn_doComplated_Click(object sender, RoutedEventArgs e) { try { if (SelectedGrid != null) { MarkCompleted markCompleted = new MarkCompleted(); markCompleted.Owner = mainWindow; markCompleted.Plan = SelectedGrid.SelectedItem as DB.WeeklyPlan; mainWindow.Opacity = 0.5; markCompleted.WindowStartupLocation = WindowStartupLocation.CenterOwner; if (markCompleted.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_doComplated_Click(object sender, RoutedEventArgs e) { if (plan_list.SelectedItem != null) { MarkCompleted markCompleted = new MarkCompleted(); markCompleted.Owner = mainWindow; markCompleted.Plan = plan_list.SelectedItem as DB.WeeklyPlan; mainWindow.Opacity = 0.5; markCompleted.WindowStartupLocation = WindowStartupLocation.CenterOwner; if (markCompleted.ShowDialog() == false) { mainWindow.UpdateScreens(); plan_list.ItemsSource = DB.GetWeeklyPlanDetail(User, Order); } } }