Ejemplo n.º 1
0
        public new void Say()
        {
            PassingEventArgs evt = new PassingEventArgs();
            evt.Value = "From Say()";

            OnBeginEvent(evt);

            System.Console.WriteLine("Dog said \"Woof\"!");

            OnEndEvent(evt);
        }
Ejemplo n.º 2
0
 protected virtual void OnEndEvent(PassingEventArgs evt)
 {
     if(EndEvent != null) {
     EndEvent(this, evt);
     }
 }
Ejemplo n.º 3
0
 protected virtual void OnBeginEvent(PassingEventArgs evt)
 {
     if(BeginEvent != null) {
     BeginEvent(this, evt);
     }
 }