protected virtual void OnPartyStarted(Person person) { if (PartyStarted != null) { PersonEventArgs personEventArgs = new PersonEventArgs(); personEventArgs.Name = person.Name; PartyStarted(this, personEventArgs); } }
public void OnPartyStarted(Object source, PersonEventArgs args) { Console.WriteLine(this + " notifying party started was sent" + args.Name); OnMailSent(); }