コード例 #1
0
        private void TableView_RowDoubleClick(object sender, MouseButtonEventArgs mouseButtonEventArgs)
        {
            var window = new EditRootSymbolWindow((UnderlyingSymbol)SymbolsGrid.SelectedItem);

            window.ShowDialog();
            CollectionViewSource.GetDefaultView(SymbolsGrid.ItemsSource).Refresh();
        }
コード例 #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));
                }
            }
        }
コード例 #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));
                }
            }
        }
コード例 #4
0
 private void TableView_RowDoubleClick(object sender, MouseButtonEventArgs mouseButtonEventArgs)
 {
     var window = new EditRootSymbolWindow((UnderlyingSymbol)SymbolsGrid.SelectedItem);
     window.ShowDialog();
     CollectionViewSource.GetDefaultView(SymbolsGrid.ItemsSource).Refresh();
 }