| | |
| | | // popupContainerControl1 |
| | | // |
| | | popupContainerControl1.Controls.Add(treeList1); |
| | | popupContainerControl1.Location = new Point(10, 158); |
| | | popupContainerControl1.Location = new Point(20, 214); |
| | | popupContainerControl1.Name = "popupContainerControl1"; |
| | | popupContainerControl1.Size = new Size(200, 100); |
| | | popupContainerControl1.TabIndex = 12; |
| | |
| | | TextEditType.Size = new Size(594, 20); |
| | | TextEditType.StyleController = layoutControl1; |
| | | TextEditType.TabIndex = 4; |
| | | TextEditType.SelectedIndexChanged += TextEditType_SelectedIndexChanged; |
| | | // |
| | | // BtnOk |
| | | // |
| | |
| | | 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 ; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | public class ValveMatchingViewModel |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// |
| | | /// </summary> |
| | | public ValveMatchingViewModel() { } |
| | | public ValveMatchingViewModel() |
| | | { } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// |
| | | /// </summary> |
| | | public ValveMatchingViewModel(Yw.Model.HydroValveInfo rhs, Yw.Model.HydroModelInfo hydroInfo, List<HydroCalcuResult> allCalcuResult) |
| | | { |
| | |
| | | default: break; |
| | | } |
| | | this.ValveSetting = rhs.ValveSetting; |
| | | |
| | | } |
| | | |
| | | /// <summaryd> |
| | |
| | | /// </summary> |
| | | [DisplayName("匹配阀门类型")] |
| | | [Browsable(true)] |
| | | public eValveType MatchingValveType { get; set; } |
| | | public eValveType? MatchingValveType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 匹配阀门设置 |