Exemple #1
0
 private void StartPlayer(int player)
 {
     if (player == 0)
     {
         SwitchColor(WhiteLabel);
         player1Time.Start();
     }
     else
     {
         SwitchColor(BlackLabel);
         player2Time.Start();
     }
 }
Exemple #2
0
        private void button_second_player_Clicked(object sender, EventArgs e)
        {
            Sound.PlaySound(Sound.SoundType.KickClap);
            playerTimer2.Stop();
            button_second_player.IsEnabled = false;
            playerTimer2.AddTime();

            row0.Height = new GridLength(4, GridUnitType.Star);
            row1.Height = new GridLength(6, GridUnitType.Star);

            playerTimer1.Start();
            button_first_player.IsEnabled = true;
        }