/// <summary>
 /// Raises the on done button clicked event.
 /// </summary>
 private void RaiseOnDoneButtonClickedEvent()
 {
     if (OnDoneButtonClicked != null)
     {
         OnDoneButtonClicked.Invoke(_subscriptionPlan);
     }
 }
Ejemplo 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)
     {
         OnDoneButtonClicked.Invoke(sender, e);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Handles the Click event of the DoneButton 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 DoneButton_Click(object sender, RoutedEventArgs e)
 {
     _timerCountDown.Stop();
     if (OnDoneButtonClicked != null)
     {
         OnDoneButtonClicked.Invoke(this, EventArgs.Empty);
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Handles the Elapsed event of the TimerCountDown control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Timers.ElapsedEventArgs"/> instance containing the event data.</param>
 private void TimerCountDown_Elapsed(object sender, ElapsedEventArgs e)
 {
     _timerCountDown.Stop();
     if (OnDoneButtonClicked != null && BaseController.CurrentView == Constants.ViewName.ErrorMessage)
     {
         OnDoneButtonClicked.Invoke(this, EventArgs.Empty);
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Handles the Click event of the DoneButton 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 DoneButton_Click(object sender, RoutedEventArgs e)
 {
     if (OnDoneButtonClicked != null)
     {
         BetteryVend betteryVend = BaseController.SelectedBettery;
         OnDoneButtonClicked.Invoke(betteryVend);
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Done clicked
 /// </summary>
 private void Done_Clicked(object sender, EventArgs e)
 {
     if (!isValid(Position))
     {
         return;
     }
     isSave(_position);
     CheckVibrate();
     OnDoneButtonClicked?.Invoke();
     Navigation.PopModalAsync();
 }
Ejemplo n.º 7
0
        /// <summary>
        /// Handles the Click event of the DoneButton control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param>
        protected void DoneButton_Click(object sender, RoutedEventArgs e)
        {
            bool isValidZipcode = BaseController.ValidateZipcode(UserZipCode);

            if (isValidZipcode)
            {
                if (OnDoneButtonClicked != null)
                {
                    OnDoneButtonClicked.Invoke(UserZipCode);
                }
            }
            else
            {
                ShowMessage(Constants.Messages.Zipcode);
            }
        }
Ejemplo n.º 8
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);
            }
        }
Ejemplo n.º 9
0
        /// <summary>
        /// Raises the on done button clicked event.
        /// </summary>
        private void RaiseOnDoneButtonClickedEvent()
        {
            EmailAddress = Email.Text;

            bool isValidEmail = BaseController.ValidateEmailAddress(EmailAddress);

            if (isValidEmail)
            {
                if (OnDoneButtonClicked != null)
                {
                    OnDoneButtonClicked.Invoke(EmailAddress);
                }
            }
            else
            {
                Message.Visibility = Visibility.Visible;
            }
        }
 /// <summary>
 /// Done clicked
 /// </summary>
 private void Done_Clicked(object sender, EventArgs e)
 {
     OnDoneButtonClicked?.Invoke();
     Navigation.PopModalAsync();
 }