示例#1
0
 public void ViewAllInstructors(IViewAllInstructos viewing)
 {
     IGyManager gymanager = Factory.CreateGyManager();
     Dictionary<string, Instructor> instructors = new Dictionary<string, Instructor>();
     Dictionary<string, Program> programs = new Dictionary<string, Program>();
     instructors = gymanager.GetAllInstructors();
     programs = gymanager.GetAllPrograms();
     viewing.DisplayData(instructors, programs);
     ((global::GyManager.GyManager)gymanager).AddObserver(viewing);
     viewing.ShowForm();
 }
示例#2
0
 public void UpdatedListOfInstructors(IViewAllInstructos viewing)
 {
     IGyManager gymanager = Factory.CreateGyManager();
     Dictionary<string, Instructor> instructors = new Dictionary<string, Instructor>();
     Dictionary<string, Program> programs = new Dictionary<string, Program>();
     instructors = gymanager.GetAllInstructors();
     programs = gymanager.GetAllPrograms();
     viewing.DisplayData(instructors, programs);
 }