private void AddNewTableButton_Click(object sender, RoutedEventArgs e) { var addWindow = new AddTable(); addWindow.Show(); addWindow.Closed += (a, b) => { UpdateResults(); }; }
private void ViewTableButton_Click(object sender, RoutedEventArgs e) { var sql = new NewSQLConn(); string q = ResultListBox.SelectedItem.ToString(); var addWindow = new AddTable() { Columns = sql.SelectCols(q) }; addWindow.TableNameBox.Text = ResultListBox.SelectedItem.ToString(); addWindow.ColumnsDataGrid.ItemsSource = addWindow.Columns; addWindow.ConfButton.Content = "Update"; addWindow.Show(); }