private void butEditClasses_Click(object sender, EventArgs e) { if (trophyEditor1.IsDirty) { MessageBox.Show(this, "Classes cannot be modified while a Trophy is being edited.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } using (EditClassesDialog dlg = new EditClassesDialog()) { if (dlg.ShowDialog(this) == DialogResult.Cancel) { return; } tblClassesTableAdapter.Fill(trophyDataSet.tblClasses); trophyEditor1.ReloadClasses(); } }
private void butEditClasses_Click(object sender, EventArgs e) { if (trophyEditor1.IsDirty) { MessageBox.Show(this, "Classes cannot be modified while a Trophy is being edited.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } using (EditClassesDialog dlg = new EditClassesDialog()) { if (dlg.ShowDialog(this) == DialogResult.Cancel) return; tblClassesTableAdapter.Fill(trophyDataSet.tblClasses); trophyEditor1.ReloadClasses(); } }