public System.Windows.MessageBoxResult ShowMessageBox(string sCaption, string sMessage, MessageBoxButton msgButtons) { BoxModel = MessageBoxModel; MessageBoxResult result = MessageBoxModel.Show(sCaption, sMessage, msgButtons); return(result); }
private void OnClosing(CancelEventArgs args) { #if !DEBUG var dlg = new MessageBoxViewModel { Caption = "Exit", Message = "Save changes and quit?", Buttons = System.Windows.MessageBoxButton.YesNo, Image = System.Windows.MessageBoxImage.Question }; args.Cancel = (dlg.Show(this.Dialogs) == System.Windows.MessageBoxResult.No); #endif }