瀏覽代碼

The standard library editor deletes the prompt to add

cxs 1 月之前
父節點
當前提交
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");