| | |
| | | using DevExpress.XtraEditors; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using System.Windows.Forms.VisualStyles; |
| | | using System.Data; |
| | | |
| | | namespace Yw.WinFrmUI |
| | | { |
| | |
| | | this.txtDescription.EditValue = _curveInfo.Description; |
| | | switch (curveType) |
| | | { |
| | | case HydroCurve.TankVol: |
| | | { |
| | | |
| | | } |
| | | break; |
| | | case HydroCurve.PumpQH: |
| | | { |
| | | this.txtCurveType.EditValue = "水泵流量扬程曲线"; |
| | |
| | | this.hydroCurveViewCtrl1.TitleTextY = "效率(%)"; |
| | | } |
| | | break; |
| | | case HydroCurve.ValveQL: |
| | | { |
| | | this.txtCurveType.EditValue = "阀门水头损失曲线"; |
| | | this.colX.Caption = "Q(m³/h)"; |
| | | this.colY.Caption = "H(m)"; |
| | | this.hydroCurveViewCtrl1.TitleTextX = "流量(m³/h)"; |
| | | this.hydroCurveViewCtrl1.TitleTextY = "压力(m)"; |
| | | } |
| | | break; |
| | | default: break; |
| | | } |
| | | _allBindingList = new BindingList<HydroCurvePointViewModel>(); |