private NumericTextBoxProperty AddHeightControl(float?height) { var heightControl = new NumericTextBoxProperty(); heightControl.PropertyName = "Height"; panel.Controls.Add(heightControl); if (height.HasValue) { heightControl.PropertyValue = height.Value.ToString(); } return(heightControl); }
private NumericTextBoxProperty AddRadiusControl(float?radius) { var radiusControl = new NumericTextBoxProperty(); radiusControl.PropertyName = "Radius"; panel.Controls.Add(radiusControl); if (radius.HasValue) { radiusControl.PropertyValue = radius.Value.ToString(); } return(radiusControl); }