private void buttonAccRegistro_MouseClick(object sender, MouseEventArgs e)
        {
            int indiceSeleccionado = listBoxVuelos.SelectedIndex;

            FormRegistoVenta ventanaRegistro = new FormRegistoVenta(ref listVuelos, indiceSeleccionado);

            this.Hide();
            ventanaRegistro.ShowDialog();

            listBoxVuelos.DataSource = null;
            listBoxVuelos.DataSource = listVuelos;
            this.Show();
        }
Example #2
0
        private void buttonAceptar_Click(object sender, EventArgs e)
        {
            int j = cadena.Length - 1;
            FormRegistoVenta ventanaVenta = new FormRegistoVenta(ref listaVuelos, cadena[j], cadena[j - 1]);

            ventanaVenta.ShowDialog();
            j--;
            while (j != 0)
            {
                ventanaVenta = new FormRegistoVenta(ref listaVuelos, cadena[j], cadena[j - 1], ventanaVenta.Pasajero);
                ventanaVenta.ShowDialog();
                j--;
            }
        }