public static MessageBoxResult ShowErrorMessageBox(this UINotificationObject controller, string message)
 {
     return(ShowMessageBox(controller, message, MessageBoxButton.OK, MessageBoxImage.Error));
 }
 public static MessageBoxResult ShowMessageBox(this UINotificationObject controller, string message, MessageBoxButton buttons, MessageBoxImage icon)
 {
     return(MessageBox.Show(controller.Owner, message, controller.FormText, buttons, icon));
 }
 public static MessageBoxResult ShowErrorMessageBox(this UINotificationObject controller, Exception ex)
 {
     return(ShowErrorMessageBox(controller, ex.ToString()));
 }