/// <summary> /// Second public call with more options /// </summary> /// <param name="message"></param> /// <param name="title"></param> /// <param name="button"></param> /// <param name="icon"></param> /// <returns></returns> public static MessageBoxResult Show(string message, string title, MessageBoxButton button, MessageBoxImage icon) { MessageBoxDlg msgBox = new MessageBoxDlg(); msgBox.Title = title; msgBox.textBlockMessage.Text = message; msgBox.DisplayButton(button); msgBox.DisplayIcon(icon); msgBox.ShowDialog(); return(msgBox.MessageBoxResult); }
/// <summary> /// First public call, simple /// </summary> /// <param name="message"></param> /// <param name="title"></param> /// <returns></returns> public static MessageBoxResult Show(string message, string title) { return(MessageBoxDlg.Show(message, title, MessageBoxButton.OKCancel, MessageBoxImage.None)); }