Shuxia Ning
2024-12-05 1e9a72970e30b74b8f0cb7c74e2bec9df1aa1d22
WinFrmUI/HStation.WinFrmUI.Assets.Core/03-valve/05-import/01-excel/ImportValvePerform2dByExcelDlg.cs
@@ -12,7 +12,7 @@
        /// <summary>
        /// 回调事件
        /// </summary>
        public event Func<string, Yw.Geometry.CubicSpline2d, Task<bool>> ReloadDataEvent;
        public event Func<string, Task<bool>> ReloadDataEvent;
        public void SetBindingData(string x, string y)
        {
@@ -22,13 +22,14 @@
        //确定
        private async void btnOk_Click(object sender, EventArgs e)
        {
            var bol = this.importCurveByExcelCtrl1.Get(out string other_name, out Yw.Geometry.CubicSpline2d ql);
            var bol = this.importCurveByExcelCtrl1.Get(out List<Yw.Geometry.Point2d> pt_list);
            if (!bol)
            {
                return;
            }
            var result = await this.ReloadDataEvent?.Invoke(other_name, ql);
            var json = Yw.JsonHelper.Object2Json(pt_list);
            var result = await this.ReloadDataEvent?.Invoke(json);
            if (!result)
            {
                XtraMessageBox.Show("导入失败!");