using Azaion.Common.Events; using MediatR; namespace Azaion.Annotator; public class AnnotatorEventHandler(Annotator annotator) : INotificationHandler { public Task Handle(LoadErrorEvent notification, CancellationToken cancellationToken) { annotator.Dispatcher.Invoke(() => annotator.TbError.Text = notification.Error); return Task.CompletedTask; } }