コード例 #1
0
 public static bool Confirm(string text, IconSet icon, Color c, string OkBtn = "OK", string CancelBtn = "Cancel")
 {
     using (ConfirmDialog d = new ConfirmDialog(text, icon, c, OkBtn, CancelBtn))
     {
         return(d.ShowDialog() == DialogResult.OK);
     }
 }
コード例 #2
0
 public static bool Confirm(string text, string OkBtn = "OK", string CancelBtn = "Cancel")
 {
     using (ConfirmDialog d = new ConfirmDialog(text, OkBtn, CancelBtn))
         return(d.ShowDialog() == DialogResult.OK);
 }