Shuxia Ning
2024-12-19 97e1e604737e70a9df2e83897d3bbf68292d0d72
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
namespace HStation.WinFrmUI
{
    public partial class UniversalChartExcelImportCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public UniversalChartExcelImportCtrl()
        {
            InitializeComponent();
        }
 
 
        /// <summary>
        /// 绑定数据
        /// </summary>  
        public void SetBindingData(string file_path, Yw.Ahart.eCurveType curve_type)
        {
            var err_msg = Yw.WinFrmUI.PhartExcelHelper.ParseUniversalExcel(file_path, out List<Yw.Geometry.Point2d> list);
            if (!string.IsNullOrEmpty(err_msg))
            {
                XtraMessageBox.Show(err_msg);
                return;
            }
 
            this.universalChartExcelImportCtrl1.SetBindingData(curve_type, list);
        }
 
 
        /// <summary>
        /// 获取
        /// </summary> 
        public Yw.Vmo.PhartDiagramExGraphListVmo Get()
        {
            return new();
        }
 
 
    }
}