Exemplo n.º 1
0
 private void castYourVoteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (_cast == null)
     {
         _cast = new FrmCastVote {MdiParent = this};
         _cast.FormClosed += Cast_FormClosed;
         _cast.Show();
     }
     else
     {
         _cast.Activate();
         _cast.WindowState = FormWindowState.Normal;
     }
 }
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     Close();
     var castVote = new FrmCastVote();
     castVote.MdiParent = (FrmIndexForm)ParentForm;
     castVote.Show();
 }