Пример #1
0
 void SetTextBlock(char answer)
 {
     WAVPlayer.StopSound();
     timer.IsEnabled    = false;
     TextBlockCall.Text = string.Format("{0} считает, что правильный ответ - \"{1}\".", TextBlockFriend.Text, answer);
     next = true;
 }
Пример #2
0
 private void Window_Closing(object sender, CancelEventArgs e)
 {
     if (DialogResult == null && !exit)
     {
         DialogResult = true;
         Save();
     }
     WAVPlayer.StopSound();
 }
Пример #3
0
 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;
 }
Пример #4
0
 private void Millionaire_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     WAVPlayer.StopSound();
 }
Пример #5
0
 private void HelpPeapleWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     WAVPlayer.StopSound();
 }