Esempio n. 1
0
        private void relationshipsButton_Click(object sender, EventArgs e)
        {
            var relationshipsForm = new RelationshipsForm(dbContext, database, TableNameTextBox.Text);

            relationshipsForm.ShowDialog(this);

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

            default:
                break;
            }
        }
        private void relationshipsButton_Click(object sender, EventArgs e)
        {
            var relationshipsForm = new RelationshipsForm(dbContext, database, TableNameTextBox.Text);
            relationshipsForm.ShowDialog(this);

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