Shuxia Ning
2024-12-24 28999ee3f86d70c5be79f6f6a686c59e56bcad32
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/11-pump/03-analy/SimulationPumpAnalyChartCtrl.cs
@@ -20,6 +20,7 @@
        public SimulationPumpAnalyChartCtrl()
        {
            InitializeComponent();
            this.pumpRunViewChart1.RunPointSelectedEvent += PumpRunViewChart1_RunPointSelectedEvent;
        }
        private Yw.Model.HydroModelInfo _hydroInfo = null;//水力信息
@@ -82,6 +83,8 @@
        public void SetBindingData(PumpRunViewViewModel vm)
        {
            this.pumpRunViewChart1.SetBindingData(vm);
            this.barCheckE.Checked = this.pumpRunViewChart1.QEVisible;
            this.barCheckP.Checked = this.pumpRunViewChart1.QPVisble;
            if (vm != null && vm.Items != null)
            {
                var item = vm.Items.FirstOrDefault();
@@ -327,13 +330,13 @@
        //效率线
        private void barCheckE_CheckedChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //this.pumpRunViewChart1.SetEQVisible
            this.pumpRunViewChart1.QEVisible = this.barCheckE.Checked;
        }
        //功率线
        private void barCheckP_CheckedChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            this.pumpRunViewChart1.QPVisble = this.barCheckP.Checked;
        }
        //设置坐标轴
@@ -342,6 +345,11 @@
            this.pumpRunViewChart1.SetChartAxis();
        }
        private void PumpRunViewChart1_RunPointSelectedEvent(PumpRunViewItemViewModel obj)
        {
            SetCurrent(obj);
        }
    }
}