static void Main(string[] args) { ClubsManager clbMngr = new ClubsManager(); SwimmersManager swmMngr = new SwimmersManager(clbMngr); try { clbMngr.LoadClubs(@"C:\A2\Clubs.txt", ","); } catch (Exception ex) { Console.WriteLine(ex.Message); } for (int i = 0; i < clbMngr.NumberOfClubs; i++) { DisplayInfo(i.ToString(), clbMngr.Clubs[i].GetInfo()); } swmMngr.LoadSwimmers(@"C:\A2\Swimmers.txt", ","); for (int i = 0; i < swmMngr.NumberOfSwimmers; i++) { DisplayInfo(i.ToString(), swmMngr.Swimmers[i].GetInfo()); } // Create 3 swimmers Registrant swimmer1; Registrant swimmer2; Registrant swimmer3; CreateSwimmers(out swimmer1, out swimmer2, out swimmer3); //Create two clubs Club club1; Club club2; CreateClubs(out club1, out club2); //Assigne swimmers to club AssigneSwimmersToClubs(swimmer1, swimmer2, swimmer3, club1, club2); //Create swim meets SwimMeet meet1; SwimMeet meet2; CreateSwimMeets(out meet1, out meet2); Event _50free1; Event _100fly; Event _200breast; Event _400free; Event _1500free; CreateEvents(out _50free1, out _100fly, out _200breast, out _400free, out _1500free); AddEventsToSwimMeets(meet1, meet2, _50free1, _100fly, _200breast, _400free, _1500free); AddSwimmersToEvents(swimmer1, swimmer2, swimmer3, meet1, meet2, _50free1, _100fly, _200breast, _400free, _1500free); SeedMeets(meet1, meet2); EnterTimesForSwims(swimmer1, swimmer2, swimmer3, meet1, meet2, _50free1, _100fly, _200breast, _400free, _1500free); clbMngr.AddClub(club1); swmMngr.AddSwimmer(swimmer1); swmMngr.AddSwimmer(swimmer2); swmMngr.AddSwimmer(swimmer3); clbMngr.SaveClubs("ClubsOut.txt", "|"); swmMngr.SaveSwimmers("SwimmersOut.txt", "|"); }