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; }
public MessageBox(MessageBoxEventArgs args) { this.args = args; InitializeComponent(); }