public IFirmwareConfigurationContractToViewHostAdapter(PervasiveDigital.Scratch.DeploymentHelper.Extensibility.Contracts.IFirmwareConfigurationContract contract)
 {
     _contract = contract;
     _handle   = new System.AddIn.Pipeline.ContractHandle(contract);
 }
コード例 #2
0
 internal static PervasiveDigital.Scratch.DeploymentHelper.Extensibility.IFirmwareConfiguration ContractToViewAdapter(PervasiveDigital.Scratch.DeploymentHelper.Extensibility.Contracts.IFirmwareConfigurationContract contract)
 {
     if ((contract == null))
     {
         return(null);
     }
     if (((System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(contract) != true) &&
          contract.GetType().Equals(typeof(IFirmwareConfigurationViewToContractHostAdapter))))
     {
         return(((IFirmwareConfigurationViewToContractHostAdapter)(contract)).GetSourceView());
     }
     else
     {
         return(new IFirmwareConfigurationContractToViewHostAdapter(contract));
     }
 }
 public IFirmwareConfigurationContractToViewHostAdapter(PervasiveDigital.Scratch.DeploymentHelper.Extensibility.Contracts.IFirmwareConfigurationContract contract)
 {
     _contract = contract;
     _handle = new System.AddIn.Pipeline.ContractHandle(contract);
 }