private void paraĆekToolStripMenuItem_Click(object sender, EventArgs e) { if (paraCek == null) { paraCek = new frm_ParaCek(musteriBanka); paraCek.MdiParent = this; paraCek.FormClosed += ParaCek_FormClosed; paraCek.Show(); } else { paraCek.Activate(); } }
private void ParaCek_FormClosed(object sender, FormClosedEventArgs e) { paraCek = null; }