Exemple #1
0
        // Hind the window
        void CloseApp()
        {
            // Reset the quesitons
            MyTest = new Test();

            AnswerIndex      = 0;
            WrongAnswerIndex = 0;

            VidPlayer.Source = null;
            VidPlayer.Stop();

            VolumeHandler.TurnOffVolumeTimer();

            main.Hide();
        }
Exemple #2
0
 private void Btnstop_Click(object sender, RoutedEventArgs e)
 {
     VidPlayer.Stop();
     mediaPlayerIsPlaying = false;
     btnplay.Content      = "Play";
 }