internal static Start9.Api.Contracts.IModuleAssemblyContract ViewToContractAdapter(JumpstartMenu.Views.IModuleAssembly view) { if ((view == null)) { return(null); } if (view.GetType().Equals(typeof(IModuleAssemblyContractToViewAddInAdapter))) { return(((IModuleAssemblyContractToViewAddInAdapter)(view)).GetSourceContract()); } else { return(new IModuleAssemblyViewToContractAddInAdapter(view)); } }
public IModuleAssemblyViewToContractAddInAdapter(JumpstartMenu.Views.IModuleAssembly view) { _view = view; }