private void EditDataBtn_ItemClick(object sender, RoutedEventArgs routedEventArgs) { var selectedInstruments = InstrumentsGrid.SelectedItems; if (selectedInstruments.Count != 1) { return; } var selectedInstrument = (Instrument)selectedInstruments[0]; var window = new DataEditWindow(selectedInstrument); window.ShowDialog(); }
private void EditDataBtn_ItemClick(object sender, RoutedEventArgs routedEventArgs) { var selectedInstruments = InstrumentsGrid.SelectedItems; if (selectedInstruments.Count != 1) return; var selectedInstrument = (Instrument)selectedInstruments[0]; var window = new DataEditWindow(selectedInstrument); window.ShowDialog(); }