25 lines
391 B
C#
25 lines
391 B
C#
namespace PCL.Core.UI;
|
|||
|
|
|
||
|
|
public enum HintTheme
|
||
|
|
{
|
||
|
|
Info,
|
||
|
|
Success,
|
||
|
|
Error,
|
||
|
|
Warning
|
||
|
|
}
|
||
|
|
|
||
|
|
public delegate void HintHandler(
|
||
|
|
string message,
|
||
|
|
HintTheme theme
|
||
|
|
);
|
||
|
|
|
||
|
|
public static class HintWrapper
|
||
|
|
{
|
||
|
|
public static event HintHandler? OnShow;
|
||
|
|
|
||
|
|
public static void Show(string message, HintTheme theme = HintTheme.Info)
|
||
|
|
{
|
||
|
|
OnShow?.Invoke(message, theme);
|
||
|
|
}
|
||
|
|
}
|