public void PostNotification(KNNotification notification)
        {
            if (delegates.ContainsKey(notification.Name)) {

                ArrayList listOfDelegates = (ArrayList)delegates.ValueForKey(notification.Name);

                foreach (KNNotificationDelegate del in listOfDelegates) {
                    if (del != null && del.Target != null) {
                        del.Invoke(notification);
                    }
                }
            }
        }
 private void ProgressTimerDidTick(KNNotification notification)
 {
     InvalidateVisual();
 }
Esempio n. 3
0
 private void SomethingHappened(KNNotification notification)
 {
     MessageBox.Show(notification.Name);
 }