コード例 #1
0
 public static MessageBoxResult ShowErrorMessageBox(this UINotificationObject controller, string message)
 {
     return(ShowMessageBox(controller, message, MessageBoxButton.OK, MessageBoxImage.Error));
 }
コード例 #2
0
 public static MessageBoxResult ShowMessageBox(this UINotificationObject controller, string message, MessageBoxButton buttons, MessageBoxImage icon)
 {
     return(MessageBox.Show(controller.Owner, message, controller.FormText, buttons, icon));
 }
コード例 #3
0
 public static MessageBoxResult ShowErrorMessageBox(this UINotificationObject controller, Exception ex)
 {
     return(ShowErrorMessageBox(controller, ex.ToString()));
 }