Exemplo n.º 1
0
        /// <summary>
        /// 初始化
        /// </summary>
        public MergeExcelForm()
        {
            InitializeComponent();

            var param1 = new ExcelParam(TEST1, DEF_TEMPLATE_PATH);

            dgvFile1.ImportDgv <AreaKpi>(param1);
            _spaces.AddRange(param1.AsList <AreaKpi>());

            var param2 = new ExcelParam(TEST2, DEF_TEMPLATE_PATH);

            dgvFile2.ImportDgv <AreaKpi>(param2);
            _spaces.AddRange(param2.AsList <AreaKpi>());
        }
Exemplo n.º 2
0
        public static void ToDgv <T>(this DataGridView dgv, ExcelParam param)
        {
            var data = param.AsList <T>();

            dgv.ToDgv(data);
        }
Exemplo n.º 3
0
        public static void ToMergeDgv <Title, Model>(this MergeDataGridView mdgv, ExcelParam param)
        {
            var data = param.AsList <Model>();

            mdgv.ToMergeDgv <Title, Model>(data);
        }