private void Form1_Load(object sender, EventArgs e)
{
string configPath = @"E:\新建文件夹\ImportConfig.xml";
config = new ImportConfig(configPath);
for (int i = 0; i < config.TableConfigs.Length; i++)
{
Button btn = new Button();
btn.Text = config.TableConfigs[i].Table_Option.TableDispName;
btn.Tag = config.TableConfigs[i].Table_Option.TableName;
flp.Controls.Add(btn);
btn.Click += new EventHandler(ImportDataSingle);
}
}
private void ImportDataSingle(object sender,EventArgs e) {
OpenFileDialog ofd = new OpenFileDialog();
ofd.Multiselect = false;
if (ofd.ShowDialog()== System.Windows.Forms.DialogResult.OK)
{
string xlsxfilename = ofd.FileNa
因篇幅问题不能全部显示,请点此查看更多更全内容