Пример #1
0
 internal static Sideshow.Views.IConfigurationEntry ContractToViewAdapter(Start9.Api.Contracts.IConfigurationEntryContract contract)
 {
     if ((contract == null))
     {
         return(null);
     }
     if (((System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(contract) != true) &&
          contract.GetType().Equals(typeof(IConfigurationEntryViewToContractAddInAdapter))))
     {
         return(((IConfigurationEntryViewToContractAddInAdapter)(contract)).GetSourceView());
     }
     else
     {
         return(new IConfigurationEntryContractToViewAddInAdapter(contract));
     }
 }
Пример #2
0
 public IConfigurationEntryContractToViewHostAdapter(Start9.Api.Contracts.IConfigurationEntryContract contract)
 {
     _contract = contract;
     _handle   = new System.AddIn.Pipeline.ContractHandle(contract);
 }