Exemple #1
0
 private void toolStripItemUndo_Click(object sender, EventArgs e)
 {
     if (mChanged.Contains(mEditorItem) && mEditorItem != null)
     {
         if (DarkMessageBox.ShowWarning(
                 Strings.QuestEditor.undoprompt, Strings.QuestEditor.undotitle, DarkDialogButton.YesNo,
                 Properties.Resources.Icon
                 ) ==
             DialogResult.Yes)
         {
             mEditorItem.RestoreBackup();
             UpdateEditor();
         }
     }
 }