Example #1
0
        public void AppearenceOfAPerson(Person person, TimeSpan time)
        {
            Console.WriteLine("[{0} {1}]", person.Name, Properties.Resources.Came);
            foreach (var p in this.people)
            {
                person.OnCame += p.Welcome;
                person.OnOut  += p.Farewell;
                p.OnOut       += person.Farewell;
            }

            this.people.Add(person);
            person.ComingTime(time);
        }