public void ViewAllMembers(IViewAllMembers viewing) { IGyManager gymanager = Factory.CreateGyManager(); Dictionary<string, Member> members = new Dictionary<string, Member>(); members = gymanager.GetAllMembers(); viewing.DisplayData(members); ((global::GyManager.GyManager)gymanager).AddObserver(viewing); viewing.ShowForm(); }
public void UpdatedListOfMembers(IViewAllMembers viewing) { IGyManager gymanager = Factory.CreateGyManager(); Dictionary<string, Member> members = new Dictionary<string, Member>(); members = gymanager.GetAllMembers(); viewing.DisplayData(members); }