| | |
| | | this.TextEditCoefficient.Text = string.Empty; |
| | | return; |
| | | } |
| | | this.TextEditCoefficient.Text = select.MinorLoss.ToString(); |
| | | this.TextEditCoefficient.Text = select.MinorLoss.ToString(); |
| | | } |
| | | |
| | | //口径选择变化事件 |
| | |
| | | return; |
| | | this.TextEditCoefficient.Text = vm.MinorLoss.ToString(); |
| | | } |
| | | |
| | | private void TextEditType_SelectedIndexChanged(object sender, EventArgs e) |
| | | { |
| | | if (Enum.TryParse(Convert.ToString(TextEditType.EditValue), true, out HStation.Assets.eValveType valvetype)) |
| | | { |
| | | if (valvetype == eValveType.GPV || valvetype == eValveType.TCV) |
| | | { |
| | | TextEditValveSetting.Enabled = false; |
| | | } |
| | | else |
| | | { |
| | | TextEditValveSetting.Enabled = true ; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |