Pārlūkot izejas kodu

The standard library editor deletes the prompt to add

cxs 5 mēneši atpakaļ
vecāks
revīzija
b47eaab714
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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");