private void button1_Click(object sender, EventArgs e) { ExcelTemplate et = new ExcelTemplate(tmp); et.colName = columnname; if (et.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.DialogResult = System.Windows.Forms.DialogResult.OK; } }
private void 管理GToolStripMenuItem_Click(object sender, EventArgs e) { foreach (Form form in this.MdiChildren) { if (form is ExcelTemplate) { form.Show(); return; } } ExcelTemplate tmp = new ExcelTemplate(); tmp.Show(); }