private void usingPINToolStripMenuItem_Click(object sender, EventArgs e) { if (vote == null) { vote = new FrmVoteByPin { MdiParent = this }; vote.Closed += Vote_Closed; vote.Show(); } else { vote.Activate(); vote.WindowState = FormWindowState.Normal; } }
private void Vote_Closed(object sender, EventArgs e) { vote = null; }