Example #1
0
        public static MessageBoxResult Show(Window owner, string messageBoxText, string caption, MessageBoxButton button)
        {
            MessageBoxResult defaultResult = MessageBoxResult.None;

            switch (button)
            {
            case MessageBoxButton.OK:
                defaultResult = MessageBoxResult.OK;
                break;

            case MessageBoxButton.OKCancel:
                defaultResult = MessageBoxResult.Cancel;
                break;

            case MessageBoxButton.YesNoCancel:
                defaultResult = MessageBoxResult.Cancel;
                break;

            case MessageBoxButton.YesNo:
                defaultResult = MessageBoxResult.No;
                break;

            default:
                break;
            }
            return(MessageBoxModule.Show(owner, messageBoxText, caption, button, defaultResult));
        }
Example #2
0
 public static MessageBoxResult Show(Window owner, string messageBoxText, string caption, MessageBoxButton button, EnumPromptType type)
 {
     return(MessageBoxModule.Show(owner, messageBoxText, caption, button, MessageBoxResult.OK, type));
 }
Example #3
0
 public static MessageBoxResult Show(Window owner, string messageBoxText, string caption, MessageBoxButton button)
 {
     return(MessageBoxModule.Show(owner, messageBoxText, caption, button));
 }
Example #4
0
 public static MessageBoxResult Show(Window owner, string messageBoxText)
 {
     return(MessageBoxModule.Show(owner, messageBoxText));
 }
Example #5
0
 public static MessageBoxResult Show(string messageBoxText, string caption, EnumPromptType type)
 {
     return(MessageBoxModule.Show(messageBoxText, caption, type));
 }
Example #6
0
 public static MessageBoxResult Show(string messageBoxText, string caption)
 {
     return(MessageBoxModule.Show(messageBoxText, caption));
 }
Example #7
0
 public static MessageBoxResult Show(string messageBoxText)
 {
     return(MessageBoxModule.Show(messageBoxText));
 }
Example #8
0
 public static MessageBoxResult Show(string messageBoxText, string caption, EnumPromptType type)
 {
     return(MessageBoxModule.Show(null, messageBoxText, caption, MessageBoxButton.OK, MessageBoxResult.OK, type));
 }
Example #9
0
 public static MessageBoxResult Show(Window owner, string messageBoxText, string caption
                                     , MessageBoxButton button, MessageBoxResult defaultResult)
 {
     return(MessageBoxModule.Show(owner, messageBoxText, caption, button, defaultResult, EnumPromptType.Info));
 }
Example #10
0
 public static MessageBoxResult Show(string messageBoxText, string caption, MessageBoxButton button)
 {
     return(MessageBoxModule.Show(null, messageBoxText, caption, button));
 }