1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-25 07:10:10 +00:00
msfs-popout-panel-manager/Shared/EventArgs/StatusMessageEventArgs.cs

43 lines
1.1 KiB
C#
Raw Normal View History

2022-07-23 19:23:32 +00:00
using System;
namespace MSFSPopoutPanelManager.Shared
{
public class StatusMessageEventArg : EventArgs
{
public StatusMessageEventArg(string message, StatusMessageType statusMessageType, bool showDialog)
{
Message = message;
StatusMessageType = statusMessageType;
ShowDialog = showDialog;
Duration = -1;
DisplayInAppWindow = false;
}
public StatusMessageEventArg(string message, StatusMessageType statusMessageType, bool showDialog, int duration, bool displayInAppWindow)
{
Message = message;
StatusMessageType = statusMessageType;
ShowDialog = showDialog;
Duration = duration;
DisplayInAppWindow = displayInAppWindow;
}
public string Message { get; set; }
public StatusMessageType StatusMessageType { get; set; }
public bool ShowDialog { get; set; }
public int Duration { get; set; }
public bool DisplayInAppWindow { get; set; }
}
public enum StatusMessageType
{
Info,
Error,
Debug
}
}