Habanero.Faces.Base.DateRangeComboBoxManager.UseAllDateRangeOptions C# (CSharp) Method

UseAllDateRangeOptions() public method

Populates the ComboBox with all available DateOptions, since the default constructor only provides a standardised collection
public UseAllDateRangeOptions ( ) : void
return void
        public void UseAllDateRangeOptions()
        {
            _optionsToDisplay = new List<DateRangeOptions>();
            foreach (int constant in Enum.GetValues(typeof(DateRangeOptions)))
            {
                _optionsToDisplay.Add((DateRangeOptions)Enum.ToObject(typeof(DateRangeOptions), constant));
            }
            BuildComboBoxList();
        }