private void Beep(object sender, System.EventArgs e) { if (!doesBeep) { return; } LcarsSound.Play(soundAsset); }
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; }
private void PlaySound() { LcarsSound.Play(soundAsset); }