Example #1
0
        static void MainEvent()
        {
            var eventRaiser  = new ClassThatRaisesEvent();
            var eventHandler = new ClassThatHandlesEvent(eventRaiser);

            eventRaiser.SimulateEvent();
        }
Example #2
0
 public ClassThatHandlesEvent(ClassThatRaisesEvent eventRaiser)
 {
     eventRaiser.SomeEvent += new CustomEventHandler(HandleEvent);
 }