Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Team team = new Team(300);
            TeamLeader teamLeader = new TeamLeader("Паша");
            House house = new House();
            Console.WriteLine(teamLeader.Work(house));

            for (int i = 0; i < team.Length; ++i)
            {
                team[i].Work(house);
            }
            Console.WriteLine(teamLeader.Work(house));
        }
Exemplo n.º 2
0
		static void Main (string[] args)
		{
			try {
				Team team = new Team (12);
				TeamLeader teamLeader = new TeamLeader ("Паша");
				House house = new House ();

				for (int i = 0; i < team.Length; ++i) {
					Log.WriteLog (new Message (team [i].Work (house), team [i].ToString ()));
					Log.WriteLog (new Message (teamLeader.Work (house), teamLeader.ToString ()));
				}
				Console.WriteLine (teamLeader.Work (house));
			} catch (Exception ex) {
				Log.WriteLog (new Message (ex.Message));
			}
		}