/// <summary> /// Raises the on done button clicked event. /// </summary> private void RaiseOnDoneButtonClickedEvent() { if (OnDoneButtonClicked != null) { OnDoneButtonClicked.Invoke(_subscriptionPlan); } }
/// <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); } }
/// <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); } }
/// <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); } }
/// <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); } }
/// <summary> /// Done clicked /// </summary> private void Done_Clicked(object sender, EventArgs e) { if (!isValid(Position)) { return; } isSave(_position); CheckVibrate(); OnDoneButtonClicked?.Invoke(); Navigation.PopModalAsync(); }
/// <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); } }
/// <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); } }
/// <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(); }