Ejemplo n.º 1
0
 internal static Start9.Api.Contracts.IModuleContract ViewToContractAdapter(Start9.Host.Views.IModule view)
 {
     if ((view == null))
     {
         return(null);
     }
     if (view.GetType().Equals(typeof(IModuleContractToViewHostAdapter)))
     {
         return(((IModuleContractToViewHostAdapter)(view)).GetSourceContract());
     }
     else
     {
         return(new IModuleViewToContractHostAdapter(view));
     }
 }
Ejemplo n.º 2
0
 public IModuleViewToContractHostAdapter(Start9.Host.Views.IModule view)
 {
     _view = view;
 }
 public void SaveConfiguration(Start9.Host.Views.IModule module)
 {
     _contract.SaveConfiguration(Start9.Host.Adapters.IModuleHostAdapter.ViewToContractAdapter(module));
 }