public bool?ApplyRubroFilter() { var form = new SmartSelectWindow(() => { return(rubroLogic.GetForSelection()); }, () => { return(rubroLogic.GetByIds(OrganizacionesFilter.Filter.RubroIds)); }, OrganizacionesFilter.Filter.RubroIds, "Rubros"); form.ShowDialog(); if (form.DialogResult.HasValue && form.DialogResult.Value) { OrganizacionesFilter.Filter.RubroIds = form.GetSelection().ToList(); OrganizacionesFilter.UpdateStatuses(); } return(form.DialogResult); }
public IEnumerable <IdAndValue> GetRubrosByIds() { return(rubroLogic.GetByIds(OrganizacionesFilter.Filter.RubroIds)); }