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]); }
public IEnumerable <int> GetParentSelected(BindEntities entity) { return(Base.GetParentSelected(entity)); }
public IBindableListControl GetParent(BindEntities entity) { return(Base.GetParent(entity)); }