Example #1
0
 public MessageBoxResult ShowCheckedMessageBox(string message, string caption, string checkedMessage, ref bool? isChecked, MessageBoxButton button, MessageBoxImage image)
 {
     var parentWindow = ParentWindow;
     var localIsChecked = isChecked;
     var result = dispatcher.Invoke(() =>
         Windows.CheckedMessageBox.Show(parentWindow, message, caption, button, image, checkedMessage, ref localIsChecked));
     isChecked = localIsChecked;
     return result;
 }
Example #2
0
        public MessageBoxResult ShowMessageBox(string message, string caption, MessageBoxButton button, MessageBoxImage image)
        {
            var parentWindow = ParentWindow;
            return dispatcher.Invoke(() =>
            {
                if (parentWindow != null)
                    return (MessageBoxResult)MessageBox.Show(parentWindow, message, caption, (System.Windows.MessageBoxButton)button, (System.Windows.MessageBoxImage)image);

                return (MessageBoxResult)MessageBox.Show(message, caption, (System.Windows.MessageBoxButton)button, (System.Windows.MessageBoxImage)image);
            });
        }
Example #3
0
        public MessageBoxResult ShowMessageBox(string message, string caption, IEnumerable <DialogButtonInfo> buttons, MessageBoxImage image)
        {
            var parentWindow = ParentWindow;

            return(dispatcher.Invoke(() => Windows.MessageBox.Show(parentWindow, message, caption, buttons, image)));
        }
Example #4
0
        public MessageBoxResult ShowMessageBox(string message, string caption, MessageBoxButton button, MessageBoxImage image)
        {
            var parentWindow = ParentWindow;

            return(dispatcher.Invoke(() => Windows.MessageBox.Show(parentWindow, message, caption, button, image)));
        }
Example #5
0
 public MessageBoxResult ShowMessageBox(string message, string caption, MessageBoxButton button, MessageBoxImage image)
 {
     return((MessageBoxResult)MessageBox.Show(message, caption, (System.Windows.MessageBoxButton)button, (System.Windows.MessageBoxImage)image));
 }
Example #6
0
 public MessageBoxResult ShowCheckedMessageBox(string message, string caption, ref bool? isChecked, MessageBoxButton button, MessageBoxImage image)
 {
     return ShowCheckedMessageBox(message, caption, Strings.DontAskMeAgain, ref isChecked, button, image);
 }
Example #7
0
 public MessageBoxResult ShowMessageBox(string message, string caption, IEnumerable<DialogButtonInfo> buttons, MessageBoxImage image)
 {
     var parentWindow = ParentWindow;
     return dispatcher.Invoke(() => Windows.MessageBox.Show(parentWindow, message, caption, buttons, image));
 }
 public Task<MessageBoxResult> MessageBox(string message, MessageBoxButton buttons = MessageBoxButton.OK, MessageBoxImage image = MessageBoxImage.None, WindowOwner owner = WindowOwner.LastModal)
 {
     return DialogHelper.MessageBox(Dispatcher, message, ApplicationName, buttons, image, owner);
 }
Example #9
0
 public CheckedMessageBoxResult BlockingCheckedMessageBox(string message, bool?isChecked, string checkboxMessage, MessageBoxButton button = MessageBoxButton.OK, MessageBoxImage image = MessageBoxImage.None, WindowOwner owner = WindowOwner.LastModal)
 {
     return(DialogHelper.BlockingCheckedMessageBox(Dispatcher, message, ApplicationName, isChecked, checkboxMessage, button, image, owner));
 }
Example #10
0
 public Task <MessageBoxResult> MessageBox(string message, MessageBoxButton buttons = MessageBoxButton.OK, MessageBoxImage image = MessageBoxImage.None, WindowOwner owner = WindowOwner.LastModal)
 {
     return(DialogHelper.MessageBox(Dispatcher, message, ApplicationName, buttons, image, owner));
 }
Example #11
0
 public MessageBoxResult BlockingMessageBox(string message, IEnumerable <DialogButtonInfo> buttons, MessageBoxImage image = MessageBoxImage.None, WindowOwner owner = WindowOwner.LastModal)
 {
     return(DialogHelper.BlockingMessageBox(Dispatcher, message, ApplicationName, buttons, image, owner));
 }
Example #12
0
 public MessageBoxResult ShowMessageBox(string message, string caption, MessageBoxButton button, MessageBoxImage image)
 {
     return (MessageBoxResult)MessageBox.Show(message, caption, (System.Windows.MessageBoxButton)button, (System.Windows.MessageBoxImage)image);
 }
 public CheckedMessageBoxResult BlockingCheckedMessageBox(string message, bool? isChecked, string checkboxMessage, MessageBoxButton button = MessageBoxButton.OK, MessageBoxImage image = MessageBoxImage.None, WindowOwner owner = WindowOwner.LastModal)
 {
     return DialogHelper.BlockingCheckedMessageBox(Dispatcher, message, ApplicationName, isChecked, checkboxMessage, button, image, owner);
 }
 public MessageBoxResult BlockingMessageBox(string message, IEnumerable<DialogButtonInfo> buttons, MessageBoxImage image = MessageBoxImage.None, WindowOwner owner = WindowOwner.LastModal)
 {
     return DialogHelper.BlockingMessageBox(Dispatcher, message, ApplicationName, buttons, image, owner);
 }
Example #15
0
 public MessageBoxResult ShowCheckedMessageBox(string message, string caption, ref bool?isChecked, MessageBoxButton button, MessageBoxImage image)
 {
     return(ShowCheckedMessageBox(message, caption, Strings.DontAskMeAgain, ref isChecked, button, image));
 }
Example #16
0
 public MessageBoxResult ShowMessageBox(string message, string caption, MessageBoxButton button, MessageBoxImage image)
 {
     var parentWindow = ParentWindow;
     return dispatcher.Invoke(() => Windows.MessageBox.Show(parentWindow, message, caption, button, image));
 }
Example #17
0
        public MessageBoxResult ShowCheckedMessageBox(string message, string caption, string checkedMessage, ref bool?isChecked, MessageBoxButton button, MessageBoxImage image)
        {
            var parentWindow   = ParentWindow;
            var localIsChecked = isChecked;
            var result         = dispatcher.Invoke(() =>
                                                   Windows.CheckedMessageBox.Show(parentWindow, message, caption, button, image, checkedMessage, ref localIsChecked));

            isChecked = localIsChecked;
            return(result);
        }
Example #18
0
        public MessageBoxResult ShowMessageBox(string message, string caption, MessageBoxButton button, MessageBoxImage image)
        {
            var parentWindow = ParentWindow;

            return(dispatcher.Invoke(() =>
            {
                if (parentWindow != null)
                {
                    return (MessageBoxResult)MessageBox.Show(parentWindow, message, caption, (System.Windows.MessageBoxButton)button, (System.Windows.MessageBoxImage)image);
                }

                return (MessageBoxResult)MessageBox.Show(message, caption, (System.Windows.MessageBoxButton)button, (System.Windows.MessageBoxImage)image);
            }));
        }