private void RecalcFilterBox() { txtFilter.Text = ""; lstCheckBox.Items.Clear(); var qfDisplay = new ModelFilterHelper().CreateDisplayOfQuickFilters(_filter); qfDisplay.ForEach(p => { lstCheckBox.Items.Add(p, true); }); QuickFilterValues remove = null; _filter.QuickFilters.ForEach(p => { if (p.ToBeModifiedInFilterEditor) { txtFilter.Text = p.FilterValue; cboColumn.SelectedIndex = cboColumn.FindStringExact(p.ColumnName); radRegex.Checked = true; remove = p; } }); if (remove != null) { _filter.QuickFilters.Remove(remove); } }
private void RecalcFilterBox(ModelFilterValues filter) { txtFilter.Text = ""; var qfDisplay = new ModelFilterHelper().CreateDisplayOfQuickFilters(filter); qfDisplay.ForEach(p => { txtFilter.Text += p + Environment.NewLine; }); dteFrom.Value = filter.DateFrom.Date; dteFromTime.Value = filter.DateFrom; dteTo.Value = filter.DateTo.Date; dteToTime.Value = filter.DateTo; chkUseDate.Checked = filter.UseDate; _currentGrid.Filter = filter; }