/// <summary> /// Creates a default number select. /// </summary> /// <param name="position"></param> /// <param name="tag"></param> /// <returns></returns> private NumericUpDown CreateLimitedNumberSelect(Position position, LimitedNumberSelect tag) { NumericUpDown num = CreateNumberSelect(position, tag); num.Maximum = (decimal)tag.UpperLimit; num.Minimum = (decimal)tag.LowerLimit; return(num); }
private void GetLimits() { LimitedNumberSelect limitedNumberSelect = _setting as LimitedNumberSelect; if (limitedNumberSelect != null) { _numberModel.LowerLimit = limitedNumberSelect.LowerLimit; _numberModel.UpperLimit = limitedNumberSelect.UpperLimit; } }
/// <summary> /// Creates a default number select. /// </summary> /// <param name="position"></param> /// <param name="tag"></param> /// <returns></returns> private NumericUpDown CreateLimitedNumberSelect(Position position, LimitedNumberSelect tag) { NumericUpDown num = CreateNumberSelect(position, tag); num.Maximum = (decimal)tag.UpperLimit; num.Minimum = (decimal)tag.LowerLimit; return num; }