Exemplo n.º 1
0
 public void Add(Person person)
 {
     Console.WriteLine($"[{person.Name} came to work]");
     foreach (var pers in _persons)
     {
         person.WalkedAway += pers.SayBye;
         pers.WalkedAway   += person.SayBye;
         person.Came       += pers.SayHi;
     }
     person.OnCome();
     _persons.Add(person);
 }