Ejemplo n.º 1
0
        public void tearDown()
        {
            freePlayer  = null;
            freePlayer2 = null;
            tutoree     = null;

            myMediaElement.Visibility = System.Windows.Visibility.Visible;
            // Instructions.Visibility = System.Windows.Visibility.Visible;
            // Facts.Visibility = System.Windows.Visibility.Visible;

            mainCanvas.Background   = new SolidColorBrush(Colors.Black);
            PauseOverlay.Visibility = System.Windows.Visibility.Hidden;

            // Tell the timeline and visualizer to cleanup
            foreach (WaveformTimeline wave in Timelines)
            {
                wave.Destroy();
            }
            Visualizer.Destroy();

            MainWindow.setManipulating(false);
            Processing.Audio.End(delegate
            {
                MainWindow.currentPage = MainWindow.homePage;
                MainWindow.loadingPage.NavigationService.Navigate(MainWindow.currentPage);
            });
        }