74 lines
2.7 KiB
C#
74 lines
2.7 KiB
C#
using DTS.Common.Enums;
|
|
|
|
namespace DTS.Common.Events
|
|
{
|
|
/// <summary>
|
|
/// Event args for the <see cref="Microsoft.Practices.Prism.Interactivity.InteractionRequest.Notification.Content"/> event.
|
|
/// </summary>
|
|
public class NotificationContentEventArgs
|
|
{
|
|
/// <summary>
|
|
/// Gets the message of the notification.
|
|
/// </summary>
|
|
public string Message { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the notification details.
|
|
/// </summary>
|
|
public string MessageDetails { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the image for the notification window.
|
|
/// </summary>
|
|
public PopupWindowImage Image { get; }
|
|
|
|
public string Title { get; }
|
|
|
|
/// <summary>
|
|
/// Constructs a new instance of <see cref="NotificationContentEventArgs"/>
|
|
/// </summary>
|
|
/// <param name="message">The message of the notification.</param>
|
|
/// <param name="messageDetails">Notification details</param>
|
|
/// <param name="image">The image for the notification window. The default is <see cref="PopupWindowImage.Error"/>.</param>
|
|
/// <param name="title">The title of the notification window.</param>
|
|
public NotificationContentEventArgs(string message, string messageDetails = "", PopupWindowImage image = PopupWindowImage.Error, string title = "")
|
|
{
|
|
Message = message;
|
|
MessageDetails = messageDetails;
|
|
Image = image;
|
|
Title = title;
|
|
}
|
|
}
|
|
public class NotificationContentEventArgsWithoutTitle
|
|
{
|
|
/// <summary>
|
|
/// Gets the message of the notification.
|
|
/// </summary>
|
|
public string Message { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the notification details.
|
|
/// </summary>
|
|
public string MessageDetails { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the image for the notification window.
|
|
/// </summary>
|
|
public PopupWindowImage Image { get; }
|
|
|
|
/// <summary>
|
|
/// Constructs a new instance of <see cref="NotificationContentEventArgs"/>
|
|
/// </summary>
|
|
/// <param name="message">The message of the notification.</param>
|
|
/// <param name="messageDetails">Notification details</param>
|
|
/// <param name="image">The image for the notification window. The default is <see cref="PopupWindowImage.Error"/>.</param>
|
|
public NotificationContentEventArgsWithoutTitle(string message, string messageDetails = "", PopupWindowImage image = PopupWindowImage.Error)
|
|
{
|
|
Message = message;
|
|
Image = image;
|
|
MessageDetails = messageDetails;
|
|
|
|
}
|
|
}
|
|
}
|