Exemple #1
0
        private void AddNewTableButton_Click(object sender, RoutedEventArgs e)
        {
            var addWindow = new AddTable();

            addWindow.Show();
            addWindow.Closed += (a, b) =>
            {
                UpdateResults();
            };
        }
Exemple #2
0
        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();
        }