Exemple #1
0
 public IDriverViewToContractAddInAdapter(PervasiveDigital.Scratch.DeploymentHelper.Extensibility.IDriver view)
 {
     _view = view;
 }
 public IDriverViewToContractHostAdapter(PervasiveDigital.Scratch.DeploymentHelper.Extensibility.IDriver view)
 {
     _view = view;
 }
 internal static PervasiveDigital.Scratch.DeploymentHelper.Extensibility.Contracts.IDriverContract ViewToContractAdapter(PervasiveDigital.Scratch.DeploymentHelper.Extensibility.IDriver view)
 {
     if ((view == null))
     {
         return(null);
     }
     if (view.GetType().Equals(typeof(IDriverContractToViewAddInAdapter)))
     {
         return(((IDriverContractToViewAddInAdapter)(view)).GetSourceContract());
     }
     else
     {
         return(new IDriverViewToContractAddInAdapter(view));
     }
 }