public IAppObjectContractToViewAddInAdapter(PipelineBuilder.Samples.Events.Contracts.IAppObjectContract contract)
 {
     _contract = contract;
     _handle = new System.AddIn.Pipeline.ContractHandle(contract);
     DocumentOpened_Handler = new IDocumentOpenedHandlerViewToContractAddInAdapter(this, s_DocumentOpenedAddFire);
 }
 public virtual void Initialize(PipelineBuilder.Samples.Events.Contracts.IAppObjectContract appObject)
 {
     _view.Initialize(PipelineBuilder.Samples.EventsHostAdapers.IAppObjectHostAdapter.ContractToViewAdapter(appObject));
 }
Beispiel #3
0
 internal static PipelineBuilder.Samples.Events.IAppObject ContractToViewAdapter(PipelineBuilder.Samples.Events.Contracts.IAppObjectContract contract)
 {
     if (((System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(contract) != true) &&
          contract.GetType().Equals(typeof(IAppObjectViewToContractAddInAdapter))))
     {
         return(((IAppObjectViewToContractAddInAdapter)(contract)).GetSourceView());
     }
     else
     {
         return(new IAppObjectContractToViewAddInAdapter(contract));
     }
 }
 public IAppObjectContractToViewAddInAdapter(PipelineBuilder.Samples.Events.Contracts.IAppObjectContract contract)
 {
     _contract = contract;
     _handle   = new System.AddIn.Pipeline.ContractHandle(contract);
     DocumentOpened_Handler = new IDocumentOpenedHandlerViewToContractAddInAdapter(this, s_DocumentOpenedAddFire);
 }