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