Exemplo n.º 1
0
 public void ViewAllPrograms(IViewAllPrograms viewing)
 {
     IGyManager gymanager = Factory.CreateGyManager();
     Dictionary<string, Program> programs = new Dictionary<string, Program>();
     Dictionary<string, Instructor> instructors = new Dictionary<string, Instructor>();
     programs = gymanager.GetAllPrograms();
     instructors = gymanager.GetAllInstructors();
     viewing.DisplayData(programs, instructors);
     ((global::GyManager.GyManager)gymanager).AddObserver(viewing);
     viewing.ShowForm();
 }
Exemplo n.º 2
0
 public void UpdatedListOfPrograms(IViewAllPrograms viewing)
 {
     IGyManager gymanager = Factory.CreateGyManager();
     Dictionary<string, Program> programs = new Dictionary<string, Program>();
     Dictionary<string, Instructor> instructors = new Dictionary<string, Instructor>();
     programs = gymanager.GetAllPrograms();
     instructors = gymanager.GetAllInstructors();
     viewing.DisplayData(programs, instructors);
 }