| | |
| | | this.txtDescription.EditValue = vmo.Description; |
| | | this.imageComboBoxEditConnectlenght.Properties.AddEnum(typeof(eElbowType)); |
| | | this.imageComboBoxEditConnectlenght.EditValue = vmo.ElbowType; |
| | | this.txtAngle.EditValue= vmo.Angle; |
| | | this.txtAngle.EditValue = vmo.Angle; |
| | | } |
| | | |
| | | //验证 |
| | |
| | | if (string.IsNullOrEmpty(this.txtName.Text.Trim())) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.txtName, "必填项"); |
| | | return false; |
| | | } |
| | | if (string.IsNullOrEmpty(this.txtMaterial.Text.Trim())) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.txtMaterial, "必填项"); |
| | | return false; |
| | | } |
| | | if (string.IsNullOrEmpty(this.txtCoefficient.Text.Trim())) |