示例#1
0
 public static void MessageBoxError(Form parent, string message)
 {
     Forms.WindowMessage dlg = new Forms.WindowMessage();
     dlg.Kind = Forms.WindowMessage.MessageKind.Error;
     dlg.Body = message;
     dlg.ShowDialog(parent);
 }
示例#2
0
 public static void MessageBoxInfo(Form parent, string message)
 {
     Forms.WindowMessage dlg = new Forms.WindowMessage();
     dlg.Kind = Forms.WindowMessage.MessageKind.Info;
     dlg.Body = message;
     dlg.ShowDialog(parent);
     //MessageBox.Show(parent, message, Constants.Name, MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
示例#3
0
 public static bool MessageBoxAskYesNo(Form parent, string message)
 {
     Forms.WindowMessage dlg = new Forms.WindowMessage();
     dlg.Kind = Forms.WindowMessage.MessageKind.YesNo;
     dlg.Body = message;
     dlg.ShowDialog(parent);
     return(dlg.YesNoAnswer);
     //return (MessageBox.Show(parent, message, Constants.Name, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes);
 }