Exemplo n.º 1
0
        public MessageBoxEventArgs(string message, Inbox2MessageBoxButton buttons, string doNotAskAgainMessage, bool doNotAskAgainChecked)
        {
            Message = message;
            Buttons = buttons;

            if (!String.IsNullOrEmpty(doNotAskAgainMessage))
            {
                DoNotAskAgain        = true;
                DoNotAskAgainChecked = doNotAskAgainChecked;
                DoNotAskAgainMessage = doNotAskAgainMessage;
            }
        }
Exemplo n.º 2
0
        public static Inbox2MessageBoxResultWrapper Show(string messageBoxText, Inbox2MessageBoxButton button, string doNotAskAgainMessage, bool doNotAskAgainChecked)
        {
            Inbox2MessageBoxResultWrapper wrapper = null;

            Thread.CurrentThread.ExecuteOnUIThread(delegate
            {
                var args = new MessageBoxEventArgs(messageBoxText, button, doNotAskAgainMessage, doNotAskAgainChecked);

                ShowMessageBox(args, args);

                wrapper = new Inbox2MessageBoxResultWrapper(args.Result, args.DoNotAskAgainResult);
            });

            return(wrapper);
        }
Exemplo n.º 3
0
        public static Inbox2MessageBoxResultWrapper Show(string messageBoxText, Inbox2MessageBoxButton button, string doNotAskAgainMessage, bool doNotAskAgainChecked)
        {
            Inbox2MessageBoxResultWrapper wrapper = null;

            Thread.CurrentThread.ExecuteOnUIThread(delegate
            {
                var args = new MessageBoxEventArgs(messageBoxText, button, doNotAskAgainMessage, doNotAskAgainChecked);

                ShowMessageBox(args, args);

                wrapper = new Inbox2MessageBoxResultWrapper(args.Result, args.DoNotAskAgainResult);
            });

            return wrapper;
        }
Exemplo n.º 4
0
 public static Inbox2MessageBoxResultWrapper Show(string messageBoxText, Inbox2MessageBoxButton button)
 {
     return(Show(messageBoxText, button, null));
 }
Exemplo n.º 5
0
 public static Inbox2MessageBoxResultWrapper Show(string messageBoxText, Inbox2MessageBoxButton button, string doNotAskAgainMessage)
 {
     return(Show(messageBoxText, button, null, false));
 }
Exemplo n.º 6
0
 public static Inbox2MessageBoxResultWrapper Show(string messageBoxText, Inbox2MessageBoxButton button, string doNotAskAgainMessage)
 {
     return Show(messageBoxText, button, null, false);
 }
Exemplo n.º 7
0
 public static Inbox2MessageBoxResultWrapper Show(string messageBoxText, Inbox2MessageBoxButton button)
 {
     return Show(messageBoxText, button, null);
 }
Exemplo n.º 8
0
        public MessageBoxEventArgs(string message, Inbox2MessageBoxButton buttons, string doNotAskAgainMessage, bool doNotAskAgainChecked)
        {
            Message = message;
            Buttons = buttons;

            if (!String.IsNullOrEmpty(doNotAskAgainMessage))
            {
                DoNotAskAgain = true;
                DoNotAskAgainChecked = doNotAskAgainChecked;
                DoNotAskAgainMessage = doNotAskAgainMessage;
            }
        }