1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-22 13:50:14 +00:00
msfs-popout-panel-manager/Shared/StatusMessageWriter.cs

20 lines
743 B
C#
Raw Normal View History

2022-07-23 19:23:32 +00:00
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));
}
}
}