Example #1
0
 private void chkGameScoreBoard_CheckedChanged(object sender, EventArgs e)
 {
     if (chkCurrentGameScoreBoard.Checked)
     {
         if (gamescoreBoard != null)
         {
             gamescoreBoard.Dispose();
         }
         gamescoreBoard = new frmScoreBoard(this, game.ID);
         gamescoreBoard.Show();
     }
     else
     {
         gamescoreBoard.Close();
         gamescoreBoard.Dispose();
     }
     CheckboxToggle(chkCurrentGameScoreBoard);
 }
Example #2
0
 private void chkTotalScoreBoard_CheckedChanged(object sender, EventArgs e)
 {
     if (chkTotalScoreBoard.Checked)
     {
         if (scoreBoard != null)
         {
             scoreBoard.Dispose();
         }
         scoreBoard = new frmScoreBoard(this, 0);
         scoreBoard.Show();
     }
     else
     {
         scoreBoard.Close();
         scoreBoard.Dispose();
     }
     CheckboxToggle(chkTotalScoreBoard);
 }