public void OutAPerson(Person person) { Console.WriteLine("[{0} {1}]", person.Name, Properties.Resources.Left); person.Exit(); foreach (var p in this.people) { p.OnCame -= person.Welcome; p.OnOut -= person.Farewell; } this.people.Remove(person); }
public void OutAPerson(Person person) { Console.WriteLine("[{0} {1}]", person.Name, Properties.Resources.Left); person.Exit(); foreach (var p in this.people) { p.OnCame -= person.Welcome; p.OnOut -= person.Farewell; } this.people.Remove(person); }