//Read

        public StatusControl this[double value] {
            get {
                try {
                    StatusControl foundStatusControl = null;
                    foreach (double statusControlKey in _statusControls.Keys)
                    {
                        if (foundStatusControl == null)
                        {
                            foundStatusControl = (StatusControl)_statusControls[statusControlKey];
                        }
                        if (value < statusControlKey)
                        {
                            break;
                        }
                        foundStatusControl = (StatusControl)_statusControls[statusControlKey];
                    }

                    if (foundStatusControl == null)
                    {
                        throw new KeyNotFoundException();
                    }

                    if (foundStatusControl.IsValueInRange(value))
                    {
                        return(foundStatusControl);
                    }

                    throw new KeyNotFoundException();
                }
                catch (Exception ex) {
                    throw new KeyNotFoundException("Can't find", ex);
                }
            }
        }
        public bool ContainsValue(double value)
        {
            try {
                StatusControl foundStatusControl = null;
                foreach (var statusControlKey in _statusControls.Keys)
                {
                    if (foundStatusControl == null)
                    {
                        foundStatusControl = (StatusControl)_statusControls[statusControlKey];
                    }
                    if (value < statusControlKey)
                    {
                        break;
                    }
                    foundStatusControl = (StatusControl)_statusControls[statusControlKey];
                }

                return(foundStatusControl != null && foundStatusControl.IsValueInRange(value));
            }
            catch (Exception) {
                return(false);
            }
        }