private void btnAddDetails_Click(object sender, RoutedEventArgs e) { var screen = new USDDetailWindow(USDDetailWindow.ADDACTION, null, UsedServices.id); this.IsEnabled = false; screen.ShowDialog(); switchToInfoAction(); this.IsEnabled = true; }
//used services info detail private void dgUSDDetails_MouseDoubleClick(object sender, MouseButtonEventArgs e) { USDDetail ud = dgUSDDetails.SelectedItem as USDDetail; if (ud != null) { var screen = new USDDetailWindow(USDDetailWindow.INFOACTION, ud); this.IsEnabled = false; screen.ShowDialog(); this.IsEnabled = true; } switchToInfoAction(); }