/// <summary> /// Creates and shows a message box dialog. /// </summary> /// <param name="title">The title.</param> /// <param name="message">The message.</param> /// <returns>The user choice.</returns> public void ShowMessageBox(string title, string message) { MessageBoxViewModel vm = new MessageBoxViewModel(title, message, System.Windows.MessageBoxButton.OK, null, new MessageBox()); vm.Show(); }
public System.Windows.MessageBoxResult ShowMessageBox(string title, string message, System.Windows.MessageBoxButton buttons, string imageSource) { MessageBoxViewModel vm = new MessageBoxViewModel(title, message, buttons, imageSource, new MessageBox()); vm.Show(); return vm.Result; }