mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-22 13:50:14 +00:00
19 lines
743 B
C#
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));
|
|
}
|
|
}
|
|
}
|