public frmExport(PdmReader pr, string path) { InitializeComponent(); this.pr = pr; this.path = path; }
private void btnGenExcel_Click(object sender, EventArgs e) { try { PdmReader mTest = new PdmReader(this.textBox1.Text); frmExport f2 = new frmExport(mTest, this.textBox1.Text); f2.Owner = this; f2.Show(); this.Visible = false; } catch (Exception ex) { MessageBox.Show(ex.Message); } }