예제 #1
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);
        }
예제 #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;
        }
예제 #3
0
        public MessageBox(MessageBoxEventArgs args)
        {
            this.args = args;

            InitializeComponent();
        }