laatzen/Common/Ui/Common.UI/Infrastructure/ErrorManager.cs
2025-01-24 12:10:40 +01:00

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
});
}
}
}