Пример #1
0
        private static void EventSample()
        {
            EventNotifier notifier      = new EventNotifier();
            EventObserver eventObserver = new EventObserver();

            notifier.MyAutoPopertyEvent += eventObserver.ObservingMethod;
            notifier.MyEvent            += eventObserver.ObservingMethod;

            notifier.NotifyAfterTimeout(2000);
        }
Пример #2
0
        private static void EventSample()
        {
            EventNotifier notifier = new EventNotifier();
            EventObserver eventObserver = new EventObserver();

            notifier.MyAutoPopertyEvent += eventObserver.ObservingMethod;
            notifier.MyEvent += eventObserver.ObservingMethod;

            notifier.NotifyAfterTimeout(2000);
        }