Shuxia Ning
2024-12-23 b501cfa4c98f3b8f4c31e0ca50c224017e55075d
WinFrmUI/Yw.WinFrmUI.Phart.Core/02-pump/02-edit/PumpChartExcelEditCtrl.cs
@@ -20,7 +20,10 @@
            this.repImgCmbEditModel.Items.Add("键盘", 1, -1);
            this.pumpEditChart1.DefinePointChangedEvent += PumpEditChart1_DefinePointChangedEvent1;
            this.pumpEditChart1.SelectedPointIndexChangedEvent += (index) =>
            {
                this.gridView1.FocusedRowHandle= index;
            };
        }
         
@@ -231,6 +234,7 @@
            }
            def_pt_list.Add(new Geometry.Point2d(x, y));
            this.bindingSource1.ResetBindings(false);
            this.gridView1.FocusedRowHandle = def_pt_list.Count - 1;
            SetChart(_def_qh_pt_list, _def_qe_pt_list, _def_qp_pt_list, _feat_type_qh, _feat_type_qe, _feat_type_qp, _edit_curve_type);
        }
@@ -250,6 +254,8 @@
            var row = this.gridView1.GetCurrentViewModel(def_pt_list);
            if (row == null)
                return;
            if (def_pt_list.Count <= 4)
                return;
            def_pt_list.Remove(row);
            this.bindingSource1.ResetBindings(false);
            SetChart(_def_qh_pt_list, _def_qe_pt_list, _def_qp_pt_list, _feat_type_qh, _feat_type_qe, _feat_type_qp, _edit_curve_type);