Shuxia Ning
2024-12-19 97e1e604737e70a9df2e83897d3bbf68292d0d72
WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-pump/PumpFullInfoCtrl.cs
@@ -1,5 +1,4 @@
using DevExpress.Spreadsheet;
using HStation.WinFrmUI.PhartRelation;
using HStation.WinFrmUI.PhartRelation;
using Yw.WinFrmUI.Phart;
namespace HStation.WinFrmUI
@@ -39,7 +38,7 @@
        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)
        {
@@ -209,15 +208,14 @@
            #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();
            };
@@ -241,7 +239,7 @@
            this.pumpVariableSpeedInfoCtrl1.SetDesignPointEvent += (q, h) =>
            {
                this.pumpVariableSpeedChart1.SetDesignPt(new Yw.Geometry.Point2d(q, h));
                this.pumpVariableSpeedChart1.SetEquipPt(q, h);
                ResetSectPointGrid();
            };
@@ -252,7 +250,7 @@
            void ResetSectPointGrid()
            {
                var vm_list = this.pumpVariableSpeedChart1.GetList();
                var vm_list = this.pumpVariableSpeedChart1.GetVmList();
                this.pumpVariableSpeedInfoCtrl1.SetSectPoint(vm_list);
            }