public void Birth(Person pers) { BornEventArgs args = new BornEventArgs(); args.Name = pers.Name; args.DateOfBirth = DateTime.Now; Hospital.PersonBirthEvent(this, args); }
public void Birth(Hospital h, BornEventArgs b) { Console.WriteLine(b.Name + " was borned at " + b.DateOfBirth); }