예제 #1
0
        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();
            }
        }
예제 #2
0
        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();
              }
        }