26 lines
503 B
C#
26 lines
503 B
C#
namespace Common.UI.Infrastructure
|
|
{
|
|
using System;
|
|
|
|
public class Error
|
|
{
|
|
public string Title { get; set; }
|
|
|
|
public string Message { get; set; }
|
|
}
|
|
|
|
public static class ErrorManager
|
|
{
|
|
public static event Action<Error> Error;
|
|
|
|
public static void NotifyError(string title, string message)
|
|
{
|
|
Error?.Invoke(new Error
|
|
{
|
|
Title = title,
|
|
Message = message
|
|
});
|
|
}
|
|
}
|
|
}
|