23 lines
466 B
C#
23 lines
466 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace Plane.Windows.Messages
|
|||
|
{
|
|||
|
public static class Message
|
|||
|
{
|
|||
|
private static Action<string> ShowAction { get; set; }
|
|||
|
|
|||
|
public static void Configure(Action<string> showAction)
|
|||
|
{
|
|||
|
ShowAction = showAction;
|
|||
|
}
|
|||
|
|
|||
|
public static void Show(string message)
|
|||
|
{
|
|||
|
ShowAction?.Invoke(message);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|