init
This commit is contained in:
73
Common/DTS.Common/Events/NotificationContentEventArgs.cs
Normal file
73
Common/DTS.Common/Events/NotificationContentEventArgs.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
using DTS.Common.Enums;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Event args for the <see cref="DTS.Common.Interactivity.InteractionRequest.Confirmation.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;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user