예제 #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;
 }
예제 #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);
            });
        }
예제 #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)));
        }
예제 #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)));
        }
예제 #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));
 }
예제 #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);
 }
예제 #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));
 }
예제 #8
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);
 }
예제 #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));
 }
예제 #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));
 }
예제 #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));
 }
예제 #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);
 }
예제 #13
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);
 }
예제 #14
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);
 }
예제 #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));
 }
예제 #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));
 }
예제 #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);
        }
예제 #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);
            }));
        }