Пример #1
0
        private void bunifuThinButton24_Click(object sender, EventArgs e)
        {
            contador    = 0;
            A_Hotel.con = 0;

            if (vuelos.SelectedRows.Count == 0)
            {
                MessageBox.Show("Primero Seleccione un Vuelo!", "Aviso!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                vuelos.Focus();
            }
            else if (adultos.Value == 0 & niños.Value == 0)
            {
                MessageBox.Show("Ingrese Pasajeros! ", "Aviso!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            else if ((finicial.Value > Convert.ToDateTime(A_Hotel.fechaini) || finicial.Value < Convert.ToDateTime(A_Hotel.fechafin)) & (ffinal.Value < Convert.ToDateTime(A_Hotel.fechafin) || ffinal.Value > Convert.ToDateTime(A_Hotel.fechafin)) & A_Hotel.hotelid != 0)
            {
                MessageBox.Show("Seleccione Fechas que Coincidan entre el Hotel y el Vuelo!", "Aviso!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            else
            {
                paiso    = origen.SelectedItem.ToString();
                paisd    = destino.SelectedItem.ToString();
                escala   = vuelos.CurrentRow.Cells[2].Value.ToString();
                precio2  = vuelos.CurrentRow.Cells[6].Value.ToString();
                fechaini = finicial.Value.ToShortDateString();
                fechafin = ffinal.Value.ToShortDateString();
                tracontinuar.HideSync(this);
                Vista_Reservas vr = new Vista_Reservas();
                vr.Show();
            }
        }
Пример #2
0
        private void bunifuThinButton21_Click(object sender, EventArgs e)
        {
            this.Hide();
            Vista_Reservas vr = new Vista_Reservas();

            vr.Show();
        }