Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void AddChildController(CRUDChildController childController)
 {
     childControllers.Add(childController);
 }