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