private void RefreshValue(KryptonNumericUpDown target, int value) { if (target.Value != value) { target.Value = value; target.Refresh(); } }
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(); } }