Exemple #1
0
 public static DialogResult ShowException(Exception exception)
 {
     return(Mess.Generic("An exception has been thrown: " + exception.ToString(), "Exception", MessageBoxButtons.OK, MessageBoxIcon.Error));
 }
Exemple #2
0
 public static DialogResult Question(string message, string caption = "Question")
 {
     return(Mess.Generic(message, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question));
 }
Exemple #3
0
 public static DialogResult Warning(string message, string caption = "Warning")
 {
     return(Mess.Generic(message, caption, MessageBoxButtons.OK, MessageBoxIcon.Warning));
 }
Exemple #4
0
 public static DialogResult Error(string message, string caption = "Error")
 {
     return(Mess.Generic(message, caption, MessageBoxButtons.OK, MessageBoxIcon.Error));
 }
Exemple #5
0
 public static DialogResult Info(string message, string caption = "Information")
 {
     return(Mess.Generic(message, caption, MessageBoxButtons.OK, MessageBoxIcon.Information));
 }