private void OnMaxSizeChanged(int newValue) { if (_filtersHistory.Count > newValue) { _filtersHistory.RemoveRange(_filtersHistory.Skip(newValue - _filtersHistory.Count)); } }