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

SetDateRangePairs() private method

Creates a dictionary of enum and string pairs to define how each option is displayed and to recognise the appropriate option from the user's selection
private SetDateRangePairs ( ) : void
return void
        private void SetDateRangePairs()
        {
            _dateRangePairs = new Dictionary<DateRangeOptions, string>();
            foreach (int constant in Enum.GetValues(typeof(DateRangeOptions)))
            {
                string displayString = StringUtilities.DelimitPascalCase(Enum.GetName(typeof(DateRangeOptions), constant), " ");
                _dateRangePairs.Add((DateRangeOptions)Enum.ToObject(typeof(DateRangeOptions), constant), displayString);
            }
        }