Esempio n. 1
0
 public static MessageBoxResult Show(string messageBoxText)
 {
     return((MessageBoxResult)AutoClosingMessageBox.Factory((string _caption, MessageBoxButtons _buttons) => System.Windows.Forms.MessageBox.Show(messageBoxText), null).Show(AutoCloseMessageBoxService.Timeout, MessageBoxButtons.OK, DialogResult.None));
 }
Esempio n. 2
0
 public static MessageBoxResult Show(Window owner, string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult = MessageBoxResult.Yes)
 {
     return((MessageBoxResult)AutoClosingMessageBox.Factory((string _caption, MessageBoxButtons _buttons) => System.Windows.Forms.MessageBox.Show(new WindowWrapper(owner), messageBoxText, _caption, _buttons, (MessageBoxIcon)icon), caption).Show(AutoCloseMessageBoxService.Timeout, (MessageBoxButtons)button, (DialogResult)defaultResult));
 }