private void aircraftConfigDataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { DataGrid acDataGrid = sender as DataGrid; if (acDataGrid.SelectedIndex > -1) { AircraftConfiguration selectedItem = acDataGrid.SelectedItem as AircraftConfiguration; NewEditAircraftConfigurationWindow editACWindow = new NewEditAircraftConfigurationWindow(selectedItem.AircraftConfigurationId); editACWindow.ShowDialog(); if (editACWindow.DialogResult.HasValue && editACWindow.DialogResult.Value) { DoSearch(); } } }
private void newBtn_Click(object sender, RoutedEventArgs e) { NewEditAircraftConfigurationWindow newAircraftConfiguration = new NewEditAircraftConfigurationWindow(); newAircraftConfiguration.ShowDialog(); }