private void MT_View_Click(object sender, EventArgs e) { if (vt == null) { vt = new ViewTransaction(); vt.MdiParent = this; vt.FormClosed += new FormClosedEventHandler(Vt_FormClosed); vt.Show(); } else { vt.Activate(); } }
private void Vt_FormClosed(object sender, FormClosedEventArgs e) { vt = null; }