                     break;
                 }
 
-                case 2:
+                case START_ONLY:
                 {
                     if (value < dateRange.rangeStart)
                         result = false;
                     break;
                 }
 
-                case 3:
+                case END_ONLY:
                 {
                     if (value > dateRange.rangeEnd)
                         result = false;
                     break;
                 }
 
-                case 4:
+                case SINGLE_DATE:
                 {
                     if (value > dateRange || value < dateRange)
                         result = false;

        {
            switch (disabledRangeMode[i])
            {
                case 1:
                case 2:
                case 3:
                {
                    removeRangeFromSelection(_disabledRanges[i].rangeStart,
                                             _disabledRanges[i].rangeEnd);
                    break;
                }

                case 4:
                {
                    removeRangeFromSelection(_disabledRanges[i],
                                             _disabledRanges[i]);
                    break;
                }
            }

                if (!_disabledRanges[i].rangeStart &&
                    _disabledRanges[i].rangeEnd)
                {
                    disabledRangeMode[i] = END_ONLY;
                }
                else if (_disabledRanges[i].rangeStart &&
                        !_disabledRanges[i].rangeEnd)
                {
                    disabledRangeMode[i] = START_ONLY;
                }
                else if (_disabledRanges[i].rangeStart &&
                         _disabledRanges[i].rangeEnd)
                {
                    disabledRangeMode[i] = START_END;
                }
            }
        }
