public CRUDChildController GetCRUDController(DBase db, Type businessLogicType, Type crudFormType, string crudFormTitle) { CRUDChildController result = null; CRUDControllerIdentifier key = new CRUDControllerIdentifier(businessLogicType, crudFormType, crudFormTitle); if (!crudControllerList.Contains(key)) { BusinessLogic businessLogic = BusinessLogicFactory.GetBusinessLogicInstance(db, businessLogicType); result = new CRUDChildController(businessLogic, crudFormTitle, crudFormType); childControllerManager.SetChildControllers(result); crudControllerList.Add(key, result); } else { result = (CRUDChildController)crudControllerList[key]; } return(result); }
public void AddChildController(CRUDChildController childController) { childControllers.Add(childController); }