| | |
| | | using DevExpress.Spreadsheet; |
| | | using HStation.WinFrmUI.PhartRelation; |
| | | using HStation.WinFrmUI.PhartRelation; |
| | | using Yw.WinFrmUI.Phart; |
| | | |
| | | namespace HStation.WinFrmUI |
| | |
| | | |
| | | private Yw.Geometry.CubicSpline2d _qh, _qe, _qp; |
| | | private Yw.Geometry.Point2d _work_pt; |
| | | private double _rated_speed=50; |
| | | private double _rated_speed = 50; |
| | | |
| | | private async void InitData(long pump_main_id, Yw.Geometry.Point2d work_pt) |
| | | { |
| | |
| | | |
| | | #region 变速曲线 |
| | | |
| | | this.pumpVariableSpeedInfoCtrl1.SetEvent += (id, qh, qe, qp) => |
| | | this.pumpVariableSpeedInfoCtrl1.SetEvent += (id, hz, ex_ratio, qh, qe, qp) => |
| | | { |
| | | this.pumpVariableSpeedChart1.Set(id, qh, qe, qp); |
| | | this.pumpVariableSpeedChart1.Set(id, hz, ex_ratio, qh, qe, qp); |
| | | ResetSectPointGrid(); |
| | | }; |
| | | |
| | | this.pumpVariableSpeedInfoCtrl1.SetInfoEvent += (id, name, color) => |
| | | this.pumpVariableSpeedInfoCtrl1.SetInfoEvent += (id, color) => |
| | | { |
| | | this.pumpVariableSpeedChart1.SetInfo(id, name, color); |
| | | this.pumpVariableSpeedChart1.SetInfo(id, color); |
| | | ResetSectPointGrid(); |
| | | }; |
| | | |
| | |
| | | |
| | | this.pumpVariableSpeedInfoCtrl1.SetDesignPointEvent += (q, h) => |
| | | { |
| | | this.pumpVariableSpeedChart1.SetDesignPt(new Yw.Geometry.Point2d(q, h)); |
| | | this.pumpVariableSpeedChart1.SetEquipPt(q, h); |
| | | ResetSectPointGrid(); |
| | | }; |
| | | |
| | |
| | | |
| | | void ResetSectPointGrid() |
| | | { |
| | | var vm_list = this.pumpVariableSpeedChart1.GetList(); |
| | | var vm_list = this.pumpVariableSpeedChart1.GetVmList(); |
| | | this.pumpVariableSpeedInfoCtrl1.SetSectPoint(vm_list); |
| | | } |
| | | |