Example #1
0
        public static IDataBinder GetDataBinder(BindEntities entity)
        {
            switch (entity)
            {
            case BindEntities.Empresa: return(new EmpresaDataBinder());

            case BindEntities.Linea: return(new LineaDataBinder());

            default: return(null);
            }
        }
        public IEnumerable <int> GetParentSelected(BindEntities entity)
        {
            var parent = GetParent(entity);

            return(parent != null ? parent.Selected : new int[0]);
        }
 public IBindableListControl GetParent(BindEntities entity)
 {
     return(!Parents.ContainsKey(entity) ? null : Parents[entity]);
 }
Example #4
0
 public IEnumerable <int> GetParentSelected(BindEntities entity)
 {
     return(Base.GetParentSelected(entity));
 }
Example #5
0
 public IBindableListControl GetParent(BindEntities entity)
 {
     return(Base.GetParent(entity));
 }