internal static Start9.Api.Contracts.IModuleContract ViewToContractAdapter(JumpstartMenu.Views.IModule view)
 {
     if ((view == null))
     {
         return(null);
     }
     if (view.GetType().Equals(typeof(IModuleContractToViewAddInAdapter)))
     {
         return(((IModuleContractToViewAddInAdapter)(view)).GetSourceContract());
     }
     else
     {
         return(new IModuleViewToContractAddInAdapter(view));
     }
 }
 public IModuleViewToContractAddInAdapter(JumpstartMenu.Views.IModule view)
 {
     _view = view;
 }
Ejemplo n.º 3
0
 public void SaveConfiguration(JumpstartMenu.Views.IModule module)
 {
     _contract.SaveConfiguration(JumpstartMenu.Adapters.IModuleAddInAdapter.ViewToContractAdapter(module));
 }