Пример #1
0
        void NotificationHandler(string message)
        {
            if (Application.OpenForms.Count < 1)
            {
                return;
            }

            Application.OpenForms[0].Invoke(new Action(() =>
                                                       NotificationPublished?.Invoke(message)));
        }
Пример #2
0
 protected virtual void OnNotificationPublished(RemoteNotificationData obj)
 {
     NotificationPublished?.Invoke(obj);
 }