1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-29 09:10:09 +00:00
msfs-popout-panel-manager/Shared/EventArgs/StatusMessageEventArgs.cs
2022-07-23 15:23:32 -04:00

42 lines
1.1 KiB
C#

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
}
}