예제 #1
0
 static void PrintEmployees(InternalFatCatsIterator iterCompany, Company printCompany)
 {
     Console.WriteLine(printCompany.CompanyName() + printCompany.CompanyDescription());
     for (iterCompany.first(); iterCompany.isdone(); iterCompany.next())
     {
         iterCompany.currentItem().DisplayEmployee();
     }
 }
예제 #2
0
        static void PrintEmployees(InternalReturnAllIterator iterCompany, Company printCompany)
        {
            Console.WriteLine(printCompany.CompanyName()+ printCompany.CompanyDescription());       //print company name and description

            for (iterCompany.first(); iterCompany.isdone();iterCompany.next())
            {
                   iterCompany.currentItem().DisplayEmployee();
            }
        }