using DTS.Common.Enums;
namespace DTS.Common.Events
{
///
/// Event args for the event.
///
public class NotificationContentEventArgs
{
///
/// Gets the message of the notification.
///
public string Message { get; }
///
/// Gets the notification details.
///
public string MessageDetails { get; }
///
/// Gets the image for the notification window.
///
public PopupWindowImage Image { get; }
public string Title { get; }
///
/// Constructs a new instance of
///
/// The message of the notification.
/// Notification details
/// The image for the notification window. The default is .
/// The title of the notification window.
public NotificationContentEventArgs(string message, string messageDetails = "", PopupWindowImage image = PopupWindowImage.Error, string title = "")
{
Message = message;
MessageDetails = messageDetails;
Image = image;
Title = title;
}
}
public class NotificationContentEventArgsWithoutTitle
{
///
/// Gets the message of the notification.
///
public string Message { get; }
///
/// Gets the notification details.
///
public string MessageDetails { get; }
///
/// Gets the image for the notification window.
///
public PopupWindowImage Image { get; }
///
/// Constructs a new instance of
///
/// The message of the notification.
/// Notification details
/// The image for the notification window. The default is .
public NotificationContentEventArgsWithoutTitle(string message, string messageDetails = "", PopupWindowImage image = PopupWindowImage.Error)
{
Message = message;
Image = image;
MessageDetails = messageDetails;
}
}
}