예제 #1
0
 private void TimerRoundEnded(object sender, RoundEndedEventArgs e)
 {
     if (File.Exists(RestEndSound))
     {
         var soundPlayer = new SoundPlayer(RestEndSound);
         soundPlayer.Play();
     }
 }
예제 #2
0
        private void TimerRestEnded(object sender, RoundEndedEventArgs e)
        {
            RestGongTimer.Stop();
            if (!SettingsManager.CurrentSettings.NeedToLoopRestSound)
            {
                _restSoundPlayer.Play();
            }

            ++CurrentRoundIndex;
            StartNextRound();
        }