Esempio n. 1
0
 internal static JumpstartMenu.Views.IMessageEntry ContractToViewAdapter(Start9.Api.Contracts.IMessageEntryContract contract)
 {
     if ((contract == null))
     {
         return(null);
     }
     if (((System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(contract) != true) &&
          contract.GetType().Equals(typeof(IMessageEntryViewToContractAddInAdapter))))
     {
         return(((IMessageEntryViewToContractAddInAdapter)(contract)).GetSourceView());
     }
     else
     {
         return(new IMessageEntryContractToViewAddInAdapter(contract));
     }
 }
 public IMessageEntryContractToViewAddInAdapter(Start9.Api.Contracts.IMessageEntryContract contract)
 {
     _contract = contract;
     _handle   = new System.AddIn.Pipeline.ContractHandle(contract);
 }
 public IMessageEntryContractToViewHostAdapter(Start9.Api.Contracts.IMessageEntryContract contract)
 {
     _contract           = contract;
     _handle             = new System.AddIn.Pipeline.ContractHandle(contract);
     MessageSent_Handler = new Start9.Host.Adapters.IMessageEventHandlerViewToContractHostAdapter(this, s_MessageSentEventAddFire);
 }