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

GetDateRangeString() public method

Returns the display string for the date range option supplied
public GetDateRangeString ( DateRangeOptions option ) : string
option DateRangeOptions The date range enumeration
return string
        public string GetDateRangeString(DateRangeOptions option)
        {
            if (_dateRangePairs.ContainsKey(option))
            {
                return _dateRangePairs[option];
            }
            throw new ArgumentException("A date range option string is being " +
                                        "accessed, but the given date range option does not exist.");
        }