private void TableView_RowDoubleClick(object sender, MouseButtonEventArgs mouseButtonEventArgs) { var window = new EditRootSymbolWindow((UnderlyingSymbol)SymbolsGrid.SelectedItem); window.ShowDialog(); CollectionViewSource.GetDefaultView(SymbolsGrid.ItemsSource).Refresh(); }
private void AddBtn_Click(object sender, RoutedEventArgs e) { var window = new EditRootSymbolWindow(null); window.ShowDialog(); if (window.SymbolAdded) { using (var entityContext = new MyDBContext()) { Symbols.Add(entityContext.UnderlyingSymbols.First(x => x.Symbol == window.TheSymbol.Symbol)); } } }