private void LoadFile(string[] tableTags, InputType type) { var filePath = CommonTools.OpenOneFile(file_suffix); if (filePath != null) { ExcelTagChoose tagChoose = new ExcelTagChoose(tableTags); switch (type) { case InputType.ToSortedFile: tagChoose.sendTable += new ExcelTagChoose.Tabledelegate(tagChooseOrg_clicked); break; case InputType.SortedFile: tagChoose.sendTable += new ExcelTagChoose.Tabledelegate(tagChooseSorted_clicked); break; default: break; } textBox.Text += "Loading " + filePath + "\n"; tagChoose.SetData(filePath); tagChoose.Show(); } }
private void LoadFile(string[] tableTags) { var filePath = CommonTools.OpenOneFile(file_suffix); if (filePath != null) { ExcelTagChoose tagChoose = new ExcelTagChoose(tableTags); tagChoose.sendTable += new ExcelTagChoose.Tabledelegate(tagChooseText_clicked); textBox.Text += "Loading " + filePath + "\n"; tagChoose.SetData(filePath); tagChoose.Show(); } }