// 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)); }
public NewArtefactEventArgs(Artefact artefact) { this.artefact = artefact; }