コード例 #1
0
ファイル: MembershipViewModel.cs プロジェクト: syatin003/Wpf
 private void ShowSelectedContactTabs(MemberModel member)
 {
     if (member != null)
     {
         _originalMember = member.Clone();
         if (CanViewContactDetails)
             ContactDetailsContent = new ContactDetailsView(member.Contact, true, member);
         if (CanViewCorrespondence)
             CorrespondenceContent = new CorrespondenceView(member.Contact,"Member");
         if (CanViewActivity)
             ActivityContent = new ActivityView(member.Contact);
         if (CanViewAccounts)
             AccountsContent = new AccountsView(member.Contact);
         if (CanViewMemberDetails)
             MemberDetailsContent = new MemberDetailsView(member);
         if (CanViewNoteDetails)
             MemberNotesContent = new MemberNotesView(member);
         if (CanViewUpdateDetails)
             MemberUpdateDetailsContent = new MemberUpdateDetailsView(member);
     }
 }
コード例 #2
0
 private void ShowSelectedContactTabs(ContactModel model)
 {
     if (model != null)
     {
         if (CanViewContactDetails)
             ContactDetailsContent = new ContactDetailsView(model);
         if (CanViewCorrespondence)
             CorrespondenceContent = new CorrespondenceView(model,"Contact");
         if (CanViewActivity)
             ActivityContent = new ActivityView(model);
         if (CanViewAccounts)
             AccountsContent = new AccountsView(model);
     }
 }