Project/02 - Engine/LittleBigTools/UserControls/NumericUpDownTextBox.xaml.cs
/// <summary>
/// Add specified value the TextBox, fixing value
/// if less than Minimum or greater than manimum
/// </summary>
/// <param name="value">Interger to add to TextBox value</param>
Add specified value the TextBox, fixing value
if less than Minimum or greater than manimum
Add specified value the TextBox fixing value if less than Minimum or greater than manimum
private void Add(int value)
        {
            int currentValue;
            if (int.TryParse(Text, out currentValue))
            {
                currentValue += value;
                if (FixValue(currentValue))
                    UpdateText(currentValue);
            }
            else if (string.IsNullOrWhiteSpace(Text) && value != 0)
            {
                if (FixValue(value))
                    UpdateText(value);
            }
        }
private void Add ( int value ) { int currentValue ; if ( int . TryParse ( Text , out currentValue ) ) { currentValue += value ; if ( FixValue ( currentValue ) ) UpdateText ( currentValue ) ; } else if ( string . IsNullOrWhiteSpace ( Text ) && value != 0 ) { if ( FixValue ( value ) ) UpdateText ( value ) ; } }
Add specified value the TextBox, fixing value
if less than Minimum or greater than manimum
Add specified value the TextBox fixing value if less than Minimum or greater than manimum
value
int
Interger to add to TextBox value
Interger to add to TextBox value