//show the interactive brokers add instrument window private void AddInstrumentIBBtn_ItemClick(object sender, RoutedEventArgs routedEventArgs) { var window = new AddInstrumentInteractiveBrokersWindow(); if (window.ViewModel != null && window.ViewModel.AddedInstruments != null) { foreach (Instrument i in window.ViewModel.AddedInstruments) { Instruments.Add(i); } window.Close(); } }
//show the interactive brokers add instrument window private void AddInstrumentIBBtn_ItemClick(object sender, RoutedEventArgs routedEventArgs) { var window = new AddInstrumentInteractiveBrokersWindow(); if (window.AddedInstruments != null) { foreach (Instrument i in window.AddedInstruments) { Instruments.Add(i); } window.Close(); } }