Esempio n. 1
0
        public static void Refresh()
        {
            int  player = Score.GetCurrentPlayer();
            Font pScore = Score.GetCurrentPlayerScore();

            Debug.Assert(pScore != null);

            if (player == 1)
            {
                Score.RefreshPlayer1(pScore);
            }

            else if (player == 2)
            {
                Score.RefreshPlayer2(pScore);
            }
        }
Esempio n. 2
0
 private static void RefreshPlayer1(Font pScore)
 {
     if (Player1Score < 100)
     {
         pScore.UpdateMessage("00" + Player1Score.ToString());
     }
     else if (Player1Score < 1000)
     {
         pScore.UpdateMessage("0" + Player1Score.ToString());
     }
     else if (Player1Score < 10000)
     {
         pScore.UpdateMessage("" + Player1Score.ToString());
     }
     else
     {
         Player1Score = Player1Score - 10000;
         // try again
         Score.RefreshPlayer1(pScore);
     }
 }