Exemplo n.º 1
0
 /// <summary>
 /// Handles the MediaEnded event of the IntroduceMedia control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
 private void ThankYouMedia_MediaEnded(object sender, RoutedEventArgs e)
 {
     ThankYouMedia.Stop();
     ThankYouMedia.Visibility = Visibility.Hidden;
     ResetMedia();
     //
     // Invoke the code to navigate back to the main animation screen
     // This assumes the thank-you sequence is long enough.   If not, then
     // we'll use the timer elapsed method instead
     //
     OnTimeout.Invoke(sender, e);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Handles the Click event of the DoneButton control.  (Note, no more control, this is invoked in the override handler of the main window - CK)
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param>
        private void DoneButton_Click(object sender, RoutedEventArgs e)
        {
            if (OnDoneButtonClicked != null)
            {
                // Clean up
                VendPackMedia.Stop();
                VendPackMedia.Visibility = Visibility.Hidden;
                ThankYouMedia.Stop();
                ThankYouMedia.Visibility = Visibility.Hidden;
                ResetMedia();

                //
                //  If we get a user touch, go to the main selection screen
                //
                OnDoneButtonClicked.Invoke(sender, e);
            }
        }