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(); }
private void SomethingHappened(KNNotification notification) { MessageBox.Show(notification.Name); }