增加状态消息
This commit is contained in:
parent
ab5611f15d
commit
314a77bfd7
@ -9,17 +9,29 @@ namespace Plane.Windows.Messages
|
||||
{
|
||||
private static Action<string> ShowAction { get; set; }
|
||||
private static Action<bool> ConnectAction { get; set; }
|
||||
private static Action<string> StatusAction { get; set; }
|
||||
|
||||
public static void Configure(Action<string> showAction)
|
||||
{
|
||||
ShowAction = showAction;
|
||||
}
|
||||
|
||||
public static void ConfigureStatus(Action<string> showAction)
|
||||
{
|
||||
StatusAction = showAction;
|
||||
}
|
||||
|
||||
|
||||
public static void Show(string message)
|
||||
{
|
||||
ShowAction?.Invoke(message);
|
||||
}
|
||||
|
||||
public static void ShowStatus(string message)
|
||||
{
|
||||
StatusAction?.Invoke(message);
|
||||
}
|
||||
|
||||
public static void Configure(Action<bool> connectAction)
|
||||
{
|
||||
ConnectAction = connectAction;
|
||||
|
Loading…
Reference in New Issue
Block a user