コード例 #1
0
ファイル: Controller.cs プロジェクト: vlatkapavisic/GyManager
 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();
 }
コード例 #2
0
ファイル: Controller.cs プロジェクト: vlatkapavisic/GyManager
 public void UpdatedListOfMembers(IViewAllMembers viewing)
 {
     IGyManager gymanager = Factory.CreateGyManager();
     Dictionary<string, Member> members = new Dictionary<string, Member>();
     members = gymanager.GetAllMembers();
     viewing.DisplayData(members);
 }