Commit 92f507a9 by 施晓雨

1

parent d3027881
......@@ -52,7 +52,21 @@ namespace Kivii.Client.OfficeSample
tbxTemplateFileName.Text = ofd.FileName;
}
private void btnSelectTemplateFile2_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "Excel模板文件|*.xlsx";
if (ofd.ShowDialog() != DialogResult.OK) return;
tbxTemplateFileName2.Text = ofd.FileName;
}
private void btnSelectTemplateFile3_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "Excel模板文件|*.xlsx";
if (ofd.ShowDialog() != DialogResult.OK) return;
tbxTemplateFileName3.Text = ofd.FileName;
}
private void btnGenerateXlsx_Click(object sender, EventArgs e)
{
//先获取要保存的文件名称
......@@ -91,20 +105,6 @@ namespace Kivii.Client.OfficeSample
lblSpendTime.Text = $"共花费{watch.ElapsedMilliseconds}毫秒,共填充了{rtns.Count}个项目";
}
private void btnSelectTemplateFile2_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "Excel模板文件|*.xlsx";
if (ofd.ShowDialog() != DialogResult.OK) return;
tbxTemplateFileName2.Text = ofd.FileName;
}
private void btnSelectTemplateFile3_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "Excel模板文件|*.xlsx";
if (ofd.ShowDialog() != DialogResult.OK) return;
tbxTemplateFileName3.Text = ofd.FileName;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment