private void button1_Click(object sender, EventArgs e) { AddEditBookingClassification aeal = new AddEditBookingClassification(); aeal.ShowDialog(); if(aeal.DialogResult==DialogResult.OK) { Rebind(); } }
private void button2_Click(object sender, EventArgs e) { if(dgvPresetNotes.SelectedRows.Count>0) { AddEditBookingClassification aeal = new AddEditBookingClassification(); aeal.presetID = accessLevels[dgvPresetNotes.SelectedRows[0].Index].Id; aeal.ShowDialog(); if (aeal.DialogResult == DialogResult.OK) { Rebind(); } } }