Пример #1
0
 public static void StopSound()
 {
     if (ReferenceEquals(SoundPlayer, null))
     {
         return;
     }
     SoundPlayer.Dispose();
     SoundPlayer = null;
 }
Пример #2
0
 public static void StopExtraSound()
 {
     if (ReferenceEquals(ExtraSoundPlayer, null))
     {
         return;
     }
     ExtraSoundPlayer.Dispose();
     ExtraSoundPlayer = null;
 }
Пример #3
0
        public static void StopWeatherSound()
        {
            if (ReferenceEquals(WeatherSoundPlayer, null))
            {
                return;
            }
            WeatherSoundPlayer.Dispose();
            WeatherSoundPlayer = null;

            CurWeatherMusic = "";
        }