private void btnPlay_Click(object sender, RoutedEventArgs e) { customAudio.StopPlaying(); Window_Game nextWindow = new Window_Game(); this.Visibility = Visibility.Collapsed; nextWindow.ShowDialog(); }
private void btnBack_Click(object sender, RoutedEventArgs e) { customAudio.StopPlaying(); Window_Introduction nextWindow = new Window_Introduction(); this.Visibility = Visibility.Collapsed; nextWindow.ShowDialog(); }
private void OnClosing(object sender, EventArgs e) { inGameAudio.StopPlaying(); gameOverAudio.StopPlaying(); Application.Current.Shutdown(); }