Esempio n. 1
0
        void NotificationHandler(string message)
        {
            if (Application.OpenForms.Count < 1)
            {
                return;
            }

            Application.OpenForms[0].Invoke(new Action(() =>
                                                       NotificationPublished?.Invoke(message)));
        }
Esempio n. 2
0
 protected virtual void OnNotificationPublished(RemoteNotificationData obj)
 {
     NotificationPublished?.Invoke(obj);
 }