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/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));
}
}
}