Exemplo n.º 1
0
        private void TableView_RowDoubleClick(object sender, MouseButtonEventArgs mouseButtonEventArgs)
        {
            var window = new EditRootSymbolWindow((UnderlyingSymbol)SymbolsGrid.SelectedItem);

            window.ShowDialog();
            CollectionViewSource.GetDefaultView(SymbolsGrid.ItemsSource).Refresh();
        }
Exemplo n.º 2
0
        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));
                }
            }
        }
Exemplo n.º 3
0
        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));
                }
            }
        }
Exemplo n.º 4
0
 private void TableView_RowDoubleClick(object sender, MouseButtonEventArgs mouseButtonEventArgs)
 {
     var window = new EditRootSymbolWindow((UnderlyingSymbol)SymbolsGrid.SelectedItem);
     window.ShowDialog();
     CollectionViewSource.GetDefaultView(SymbolsGrid.ItemsSource).Refresh();
 }