void SetTextBlock(char answer) { WAVPlayer.StopSound(); timer.IsEnabled = false; TextBlockCall.Text = string.Format("{0} считает, что правильный ответ - \"{1}\".", TextBlockFriend.Text, answer); next = true; }
private void Window_Closing(object sender, CancelEventArgs e) { if (DialogResult == null && !exit) { DialogResult = true; Save(); } WAVPlayer.StopSound(); }
private void imageSound_MouseDown(object sender, MouseButtonEventArgs e) { if (WAVPlayer.sound) { WAVPlayer.StopSound(); imageSound.Source = new BitmapImage(new Uri("pack://application:,,,/Resources/soundOff.png")); } else { imageSound.Source = new BitmapImage(new Uri("pack://application:,,,/Resources/soundOn.png")); } WAVPlayer.sound = !WAVPlayer.sound; }
private void Millionaire_Closing(object sender, System.ComponentModel.CancelEventArgs e) { WAVPlayer.StopSound(); }
private void HelpPeapleWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { WAVPlayer.StopSound(); }