コード例 #1
0
 public static void MessageWarning(this System.Windows.Forms.Control owner,
                                   string message, string title = "Warning", TextAlignment textAlignment = TextAlignment.Center)
 {
     owner.MessageBox(message, title, MessageBoxImage.Exclamation, textAlignment);
 }
コード例 #2
0
 public static PopUp.PopUpResult MessageQuestion(this System.Windows.Forms.Control owner,
                                                 string message, string title   = "Question",
                                                 PopUp.PopUpButtonsType buttons = PopUp.PopUpButtonsType.CancelOK)
 {
     return(owner.MessageBox(message, title, MessageBoxImage.Question, TextAlignment.Center, buttons));
 }
コード例 #3
0
 public static void MessageError(this System.Windows.Forms.Control owner,
                                 string message, string title = "Error", TextAlignment textAlignment = TextAlignment.Center)
 {
     owner.MessageBox(message, title, MessageBoxImage.Error, textAlignment);
 }