コード例 #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;
            }
        }
コード例 #2
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;
            }
        }