private void Mnu_Click(object sender, EventArgs e) { frmTransaction transaction = new frmTransaction(); transaction.VoucherId = Convert.ToInt32(((ToolStripMenuItem)sender).Tag); transaction.MdiParent = this; transaction.Text = ((ToolStripMenuItem)sender).Text; transaction.Show(); transaction.BringToFront(); }
private void transactionToolStripMenuItem_Click(object sender, EventArgs e) { if (transaction.IsDisposed) { transaction = new frmTransaction(); } transaction.MdiParent = this; transaction.Show(); transaction.BringToFront(); }