void NotificationHandler(string message) { if (Application.OpenForms.Count < 1) { return; } Application.OpenForms[0].Invoke(new Action(() => NotificationPublished?.Invoke(message))); }
protected virtual void OnNotificationPublished(RemoteNotificationData obj) { NotificationPublished?.Invoke(obj); }