public static bool ShowDialog(string title, string msg) { var infoDlgVM = new InfoDialogViewModel(title, msg); var infoDlg = new InfoDialogView(infoDlgVM); return(infoDlg.ShowDialog() == true); }
/// <summary> /// Invokes the message box. /// </summary> /// <param name="text">The text displayed in the message box.</param> /// <param name="caption">The caption of the message box.</param> internal static void ShowDialog(string text, string caption) { InfoDialogView view = new InfoDialogView(); InfoDialogViewModel viewModel = new InfoDialogViewModel(text, caption); view.DataContext = viewModel; view.ShowDialog(); }