Beispiel #1
0
        private void OnDesignTableMenuItemClick(object sender, EventArgs e)
        {
            Database database     = dbContext.SchemaQuery.GetDatabase(DatabaseTreeView.SelectedNode.Parent.Text.ToString());
            var      newTableForm = new TableDesignForm(dbContext, database, database.GetTable(DatabaseTreeView.SelectedNode.Text.ToString()));

            newTableForm.ShowDialog(this);

            switch (newTableForm.DialogResult)
            {
            case DialogResult.OK:
                dbContext.SchemaQuery.UpdateDatabase(database.Name);
                break;

            default:
                break;
            }
        }
Beispiel #2
0
        private void OnDesignTableMenuItemClick(object sender, EventArgs e)
        {
            Database database = dbContext.SchemaQuery.GetDatabase(DatabaseTreeView.SelectedNode.Parent.Text.ToString());
            var newTableForm = new TableDesignForm(dbContext, database, database.GetTable(DatabaseTreeView.SelectedNode.Text.ToString()));
            newTableForm.ShowDialog(this);

            switch (newTableForm.DialogResult)
            {
                case DialogResult.OK:
                    dbContext.SchemaQuery.UpdateDatabase(database.Name);
                    break;
                default:
                    break;
            }
        }