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(); }
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); }