Просмотр исходного кода

The standard library editor deletes the prompt to add

cxs 1 месяц назад
Родитель
Сommit
b47eaab714
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      OTSPartA_STDEditor/UI/STDRuleslist.cs

+ 2 - 0
OTSPartA_STDEditor/UI/STDRuleslist.cs

@@ -215,6 +215,8 @@ namespace OTSPartA_STDEditor
         }
         private void ToolStripMenuItem_Del_Click(object sender, EventArgs e)
         {
+            DialogResult ret = MessageBox.Show("Have you confirmed the deletion?", "Tip", MessageBoxButtons.YesNo);
+            if (ret != DialogResult.Yes) return;
             if (treeView_G.SelectedNode == null)
             {
                 MessageBox.Show("Please select a node!", "Tip");