Ejemplo n.º 1
0
        /// <summary>
        /// Loads (and starts timer, if needed)
        /// </summary>
        public void Load()
        {
            ResetMedia();
            VendPackMedia.Visibility = Visibility.Visible;
            ThankYouMedia.Visibility = Visibility.Hidden;
            Message.Visibility       = Visibility.Visible;

            VendPackMedia.Play();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Handles the MediaEnded event of the VendPackMedia 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 VendPackMedia_MediaEnded(object sender, RoutedEventArgs e)
        {
            VendPackMedia.Stop();
            VendPackMedia.Visibility = Visibility.Hidden;

            ResetMedia();

            Message.Visibility = Visibility.Hidden;

            ThankYouMedia.Visibility = Visibility.Visible;
            ThankYouMedia.Play();
        }
Ejemplo n.º 3
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);
            }
        }