|
@@ -206,11 +206,11 @@ public partial class MessageWindow : Window, INotifyPropertyChanged
|
|
|
|
|
|
#region Static Constructors
|
|
|
|
|
|
- public static readonly BitmapImage _warning = InABox.Wpf.Resources.warning.AsBitmapImage();
|
|
|
+ private static readonly BitmapImage _warning = InABox.Wpf.Resources.warning.AsBitmapImage();
|
|
|
|
|
|
public static BitmapImage WarningImage => _warning;
|
|
|
|
|
|
- public static readonly BitmapImage _question = InABox.Wpf.Resources.help.AsBitmapImage();
|
|
|
+ private static readonly BitmapImage _question = InABox.Wpf.Resources.help.AsBitmapImage();
|
|
|
|
|
|
public static BitmapImage QuestionImage => _question;
|
|
|
|
|
@@ -232,6 +232,15 @@ public partial class MessageWindow : Window, INotifyPropertyChanged
|
|
|
NewMessage(message, title, image).Display();
|
|
|
}
|
|
|
|
|
|
+ public static MessageWindow NewWarn(string message, string title = "Warning", ImageSource? image = null)
|
|
|
+ {
|
|
|
+ return NewMessage(message, title, image);
|
|
|
+ }
|
|
|
+ public static void Warn(string message, string title = "Warning", ImageSource? image = null)
|
|
|
+ {
|
|
|
+ NewMessage(message, title, image).Display();
|
|
|
+ }
|
|
|
+
|
|
|
public static MessageWindow NewOKCancel(string message, string title, ImageSource? image = null)
|
|
|
{
|
|
|
return new MessageWindow()
|