Ejemplo n.º 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;
 }
Ejemplo n.º 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);
            });
        }
Ejemplo n.º 3
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);
            }));
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
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));
 }
Ejemplo n.º 6
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)));
        }
Ejemplo n.º 7
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));
 }
Ejemplo n.º 8
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);
 }
Ejemplo n.º 9
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));
 }
Ejemplo n.º 10
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));
 }
Ejemplo n.º 11
0
 public MessageBoxResult BlockingMessageBox(string message, MessageBoxButton buttons = MessageBoxButton.OK, MessageBoxImage image = MessageBoxImage.None, WindowOwner owner = WindowOwner.LastModal)
 {
     return(DialogHelper.BlockingMessageBox(Dispatcher, message, ApplicationName, buttons, image, owner));
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 14
0
 public MessageBoxResult BlockingMessageBox(string message, MessageBoxButton buttons = MessageBoxButton.OK, MessageBoxImage image = MessageBoxImage.None, WindowOwner owner = WindowOwner.LastModal)
 {
     return DialogHelper.BlockingMessageBox(Dispatcher, message, ApplicationName, buttons, image, owner);
 }