Ejemplo n.º 1
0
        static void MainEvent()
        {
            var eventRaiser  = new ClassThatRaisesEvent();
            var eventHandler = new ClassThatHandlesEvent(eventRaiser);

            eventRaiser.SimulateEvent();
        }
Ejemplo n.º 2
0
 public ClassThatHandlesEvent(ClassThatRaisesEvent eventRaiser)
 {
     eventRaiser.SomeEvent += new CustomEventHandler(HandleEvent);
 }