public INativeHandleContract GetAddInUI(IPersonContract personContract) { Person_ContractToViewAddInSideAdapter personView = new Person_ContractToViewAddInSideAdapter(personContract); FrameworkElement fe = this.addInView.GetAddInUI(personView); INativeHandleContract addInUIHwnd = FrameworkElementAdapters.ViewToContractAdapter(fe); return(addInUIHwnd); }
public Person_ContractToViewAddInSideAdapter(IPersonContract personContract) { this.personContract = personContract; this.contractHandle = new ContractHandle(personContract); this.notifier = new PropertyChangedNotifier(); this.notifier.PropertyChanged += notifier_PropertyChanged; this.personContract.PropertyChangedNotifier = this.notifier; }