Пример #1
0
        private void RefreshValue(KryptonNumericUpDown target, int value)
        {
            if (target.Value != value)
            {
                target.Value = value;

                target.Refresh();
            }
        }
Пример #2
0
 private void RefreshValue(KryptonNumericUpDown knum, int value)
 {
     // Update the value of the NumericUpDown control,
     // if the value is different than the current value.
     // Refresh the control, causing an immediate repaint.
     if (knum.Value != value)
     {
         knum.Value = value;
         knum.Refresh();
     }
 }