Exemple #1
0
        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);
        }
Exemple #2
0
        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;
        }