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);
                    }
                }
            }
        }
예제 #2
0
 private void ProgressTimerDidTick(KNNotification notification)
 {
     InvalidateVisual();
 }
예제 #3
0
 private void SomethingHappened(KNNotification notification)
 {
     MessageBox.Show(notification.Name);
 }