lixiaojun
2025-01-20 bef933e7e166b085ba7e46e38ea62d9ae0129ec6
WinFrmUI/HStation.WinFrmUI.Assets.Core/03-valve/05-import/01-excel/ImportValvePerform2dByExcelCtrl.cs
@@ -237,7 +237,7 @@
            }
            _cubic_spline_ql = new Yw.Geometry.CubicSpline2d(_pt_ql_list);
            this.xtrPerform2dChart1.SetBindingData(_cubic_spline_ql, string.Empty, true);
            this.xtrPerform2dChart1.SetBindingData(_cubic_spline_ql.ToDbString(), string.Empty, true);
            return true;
        }
@@ -245,21 +245,13 @@
        /// 获取数据
        /// </summary>
        /// <returns></returns>
        public bool Get(out string other_name, out Yw.Geometry.CubicSpline2d ql)
        public bool Get(out List<Yw.Geometry.Point2d> pt_list)
        {
            other_name = this.txtCurveCode.Text.Trim();
            ql = null;
            pt_list = null;
            if (!loadChart())
                return false;
            if (string.IsNullOrEmpty(other_name))
            {
                XtraMessageBox.Show("请输入曲线名称!");
                return false;
            }
            ql = new Yw.Geometry.CubicSpline2d(_pt_ql_list);
            pt_list = _pt_ql_list;
            return true;
        }
    }