Example #1
0
 private void updateComponents()
 {
     while (true)
     {
         SetTeam1Text(team1);
         SetTeam2Text(team2);
         SetTeam1Score(team1Score.ToString());
         SetTeam2Score(team2Score.ToString());
         SetTitleText(GameUtility.compName);
         if (screenMode != lastScreenState)
         {
             lastScreenState = screenMode;
             GoFullscreen(lastScreenState);
         }
         if (GameUtility.gameTime <= 99)
         {
             SetTimerText(GameUtility.getGameTime().ToString("00.00"));
         }
         else
         {
             SetTimerText(GameUtility.getGameTime().ToString("000.00"));
         }
         Thread.Sleep(50);
     }
 }
Example #2
0
 private void updateComponents()
 {
     while (true)
     {
         setTimeProgress(GameUtility.gameTime, true);
         setTimeProgress(GameUtility.getGameTime(), false);
         subtractModeTeam1 = team1Toggle.Checked;
         subtractModeTeam2 = team2Toggle.Checked;
         lastTeam1         = Display.team1;
         lastTeam2         = Display.team2;
         SetTeam1Text(Display.team1);
         SetTeam2Text(Display.team2);
         updateScoreNames();
         Thread.Sleep(100);
     }
 }