Exemple #1
0
 static void Main(string[] args)
 {
     Team t = new Team();
     t.AddProgrammer(new Programmer("Geoffrey", Specialty.Csharp));
     t.AddProgrammer(new Programmer("Sjaak", Specialty.HTML));
     t.AddProgrammer(new Programmer("Lance", Specialty.Java));
     t.AddProgrammer(new Programmer("Jake", Specialty.PHP));
     t.PrintAllMembers();
     Console.ReadKey();
 }
        void Start()
        {
            Programmer programmer = new Programmer("John", Specialty.Csharp);
            //programmer.Print();
            Team team = new Team();

            team.AddProgrammer(new Programmer("Peter", Specialty.Csharp));
            team.AddProgrammer(new Programmer("Kevin", Specialty.Java));
            team.AddProgrammer(new Programmer("John", Specialty.Csharp));
            team.AddProgrammer(new Programmer("Susan", Specialty.Java));

            //team.PrintAllTeamMembers();
            team.AddProgrammer(new Programmer("Emma"));
            team.PrintAllTeamMembers();

            Console.ReadKey();
        }
Exemple #3
0
        bool Start()
        {
            Programmer p1 = new Programmer("Hank", Specialty.PHP);
            Programmer p2 = new Programmer("Peter", Specialty.Java);
            Programmer p3 = new Programmer("Samantha", Specialty.HTML);
            Programmer p4 = new Programmer("Astrid");

            p1.Print();
            Team team = new Team();

            team.AddProgrammer(p1);
            team.AddProgrammer(p2);
            team.AddProgrammer(p3);
            team.AddProgrammer(p4);
            team.PrintAllTeamMembers();

            return(ProgramTools.LoopProgram());
        }