Exemplo n.º 1
0
 // Wrap the event in a protected virtual method
 // to enable derived classes to raise the event.
 public virtual void RaiseNewArtefactEvent(Artefact artefact)
 {
     Artefacts.Add(artefact.ProperName, artefact);
     // Raise the event by using the () operator.
     NewArtefactEvent(this, new NewArtefactEventArgs(artefact));
 }
Exemplo n.º 2
0
 public NewArtefactEventArgs(Artefact artefact)
 {
     this.artefact = artefact;
 }