/// <summary>
 /// Handles the Load event of the ucInterJetPaymentForm control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void ucInterJetPaymentForm_Load(object sender, EventArgs e)
 {
     try
     {
         InterJetPaymentFormHandler.Initialize();
         if (!ImpuestosBajoCosto.continuePayment && !VolarisSession.IsVolarisProcess)
         {
             MessageBox.Show("El tiempo para la realizar la compra de la reserva se agoto, favor de realzar nuevamente la reserva");
             Loader.AddToPanel(Loader.Zone.Middle, this, Resources.Constants.UCAVAILABILITY);
         }
         else
         {
             this.commitButton.Focus();
             ucFirstValidations.NameProfile = InterJetPaymentFormHandler.InterJetProfile.SecondLevelProfile;
             if (string.IsNullOrEmpty(ucFirstValidations.DK))
             {
                 ucFirstValidations.DK = InterJetPaymentFormHandler.InterJetProfile.FirstLevelProfile;
             }
             //ucFirstValidations.GetCreditCards();
         }
     }
     catch (Exception ex)
     {
     }
 }
        private void ucVolarisPaymentFormFormulario_Load(object sender, EventArgs e)
        {
            try
            {
                if (!VolarisSession.ErrorPay)
                {
                    this.lbPredictive.Visible = false;
                    FillCombo();
                    InterJetPaymentFormHandler.Initialize();
                    this.commitButton.Focus();
                    ucFirstValidations.NameProfile = VolarisSession.SegundoNivel;
                    ucFirstValidations.DK          = VolarisSession.DK;
                    ucFirstValidations.GetCreditCards();
                }
                else
                {
                    InterJetPaymentFormHandler.Initialize();
                    FillCombo();
                    txtLastNameTitular.Text   = VolarisSession.PagoVolaris.Apellido;
                    txtCountry.Text           = VolarisSession.PagoVolaris.CodigoPais;
                    txtPostCode.Text          = VolarisSession.PagoVolaris.CodigoPostal;
                    securityCodeTextBox.Text  = VolarisSession.PagoVolaris.CodigoSeguridad;
                    txtAddress.Text           = VolarisSession.PagoVolaris.Direccion;
                    txtCity.Text              = VolarisSession.PagoVolaris.Ciudad;
                    txtEmail.Text             = VolarisSession.PagoVolaris.Email;
                    cmbStateorProvidence.Text = VolarisSession.PagoVolaris.EstadoProvincia;

                    string[] fecha = VolarisSession.PagoVolaris.FechaExpiracion.ToString().Split('/');
                    expirationMonthComboBox.Text = fecha[1];
                    expirationYearComboBox.Text  = fecha[2];
                    creditCardComboBox.Text      = VolarisSession.PagoVolaris.MetodoDePago;
                    totalToPayTextBox.Text       = VolarisSession.PagoVolaris.Monto.ToString();
                    txtPhone.Text       = VolarisSession.PagoVolaris.Telefono;
                    txtNameTitular.Text = VolarisSession.PagoVolaris.Titular;
                    creditCardNumberTextBox.Focus();
                }
            }
            catch (Exception exception)
            {
                throw exception;
            }
        }