Ejemplo n.º 1
0
 private void voterToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (_voter == null)
     {
         _voter = new FrmVoterRegistration {MdiParent = this};
         _voter.FormClosed += Voter_FormClosed;
         _voter.Show();
     }
     else
     {
         _voter.Activate();
         _voter.WindowState = FormWindowState.Normal;
     }
 }
Ejemplo n.º 2
0
 private void Voter_FormClosed(object sender, FormClosedEventArgs e)
 {
     _voter = null;
 }
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     var frmVoter = new FrmVoterRegistration();
     this.Hide();
     frmVoter.Show();
 }