/// <summary> /// Updates this attribute editor's properties /// </summary> public void UpdateComponent() { // Set the help text AttributeName.Text = Attribute.Name; UseTip.SetToolTip(InputControl, Attribute.Description); // Set the min/max InputControl.Minimum = NumberUtil.ClampToDecimal(Attribute.Minimum); InputControl.Maximum = NumberUtil.ClampToDecimal(Attribute.Maximum); var realValue = (double)Field.GetValue(Owner); InputControl.Value = NumberUtil.ClampToDecimal(realValue); }