V1/Toolbox.NETMF.Hardware.Port/NumericInput.cs
/// <summary>
/// Sets the range allowed for the value of the port
/// </summary>
/// <param name="minValue">The minimum inclusive allowed value</param>
/// <param name="maxValue">The minimum inclusive allowed value</param>
Sets the range allowed for the value of the port
Sets the range allowed for the value of the port
public void SetRange(
            int minValue,
            int maxValue)
        {
            if (minValue >= maxValue)
                return;
            this.Minimum = minValue;
            this.Maximum = maxValue;
            this.Value = this.CoerceValue(this.Value);
        }
public void SetRange ( int minValue , int maxValue ) { if ( minValue >= maxValue ) return ; this . Minimum = minValue ; this . Maximum = maxValue ; this . Value = this . CoerceValue ( this . Value ) ; }
Sets the range allowed for the value of the port
Sets the range allowed for the value of the port
//validate inputs //set new range //adjust current value upon the new range
minValue
int
The minimum inclusive allowed value
The minimum inclusive allowed value
maxValue
int
The minimum inclusive allowed value
The minimum inclusive allowed value