1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-22 05:40:11 +00:00
msfs-popout-panel-manager/Shared/StatusMessageWriter.cs
2022-07-23 15:23:32 -04:00

19 lines
743 B
C#

using System;
namespace MSFSPopoutPanelManager.Shared
{
public class StatusMessageWriter
{
public static event EventHandler<StatusMessageEventArg> OnStatusMessage;
public static void WriteMessage(string message, StatusMessageType statusMessageType, bool showDialog, int duration, bool displayInAppWindow)
{
OnStatusMessage?.Invoke(null, new StatusMessageEventArg(message, statusMessageType, showDialog, duration, displayInAppWindow));
}
public static void WriteMessage(string message, StatusMessageType statusMessageType, bool showDialog)
{
OnStatusMessage?.Invoke(null, new StatusMessageEventArg(message, statusMessageType, showDialog));
}
}
}