Пример #1
0
 private void Beep(object sender, System.EventArgs e)
 {
     if (!doesBeep)
     {
         return;
     }
     LcarsSound.Play(soundAsset);
 }
Пример #2
0
 private void FullScreenButton_Click(object sender, EventArgs e)
 {
     FullScreenButton.IsLit = !FullScreenButton.IsLit;
     if (FullScreenButton.IsLit)
     {
         LcarsSound.Play(LcarsSoundAsset.TurnOn2);
     }
     else
     {
         LcarsSound.Play(LcarsSoundAsset.TurnOff2);
     }
     FullScreen = FullScreenButton.IsLit;
 }
Пример #3
0
 private void PlaySound()
 {
     LcarsSound.Play(soundAsset);
 }