Exemple #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);
        }
        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;
        }