コード例 #1
0
 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;
     }
 }
コード例 #2
0
 private void Vote_Closed(object sender, EventArgs e)
 {
     vote = null;
 }