Project/02 - Engine/LittleBigTools/UserControls/NumericUpDownTextBox.xaml.cs
/// <summary>
/// This only does something if the value is out of range
/// (ie above maximum or below minimum allowed values
/// </summary>
/// <param name="value">interger to check against limits</param>
/// <returns></returns>
This only does something if the value is out of range
(ie above maximum or below minimum allowed values
This only does something if the value is out of range ( ie above maximum or below minimum allowed values
private bool FixValue(int value)
        {
            if (value > MaxValue)
            {
                UpdateText(MaxValue);
                return false;
            }
            else if (value < MinValue)
            {
                UpdateText(MinValue);
                return false;
            }
            return true;
        }
private bool FixValue ( int value ) { if ( value > MaxValue ) { UpdateText ( MaxValue ) ; return false ; } else if ( value < MinValue ) { UpdateText ( MinValue ) ; return false ; } return true ; }
This only does something if the value is out of range
(ie above maximum or below minimum allowed values
This only does something if the value is out of range ( ie above maximum or below minimum allowed values
// else: nothing to fix
None
value
int
interger to check against limits
interger to check against limits