Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }