Exemplo n.º 1
0
 public Registro(string asiento, int No_asiento, ref Vuelo vueloObject, string nombre, string apellido)
 {
     this.vueloObject = vueloObject;
     this.asiento     = asiento;
     this.No_asiento  = No_asiento;
     InitializeComponent();
     vuelo_textBox.Text         = vueloObject.ToString().Substring(3);
     this.vuelo_textBox.Enabled = false;
     this.textBox2.Text         = asiento;
     this.textBox2.Enabled      = false;
     textBox3.Text = nombre;
     textBox4.Text = apellido;
 }
Exemplo n.º 2
0
 public Registro(string asiento,int No_asiento, ref Vuelo vueloObject,string nombre,string apellido)
 {
     this.vueloObject = vueloObject;
     this.asiento = asiento;
     this.No_asiento = No_asiento;
     InitializeComponent();
     vuelo_textBox.Text = vueloObject.ToString().Substring(3);
     this.vuelo_textBox.Enabled = false;
     this.textBox2.Text = asiento;
     this.textBox2.Enabled = false;
     textBox3.Text = nombre;
     textBox4.Text = apellido;
 }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            foreach (Vuelo v in vuelosRuta)
            {
                Vuelo  fv     = v;
                string fvdata = fv.ToString();

                Console.WriteLine(v.ToString());

                SeleccionAsiento venta = new SeleccionAsiento(ref fv, ref fvdata, textBoxName.Text, textBoxApellido.Text);
                venta.ShowDialog();
            }

            this.Close();
        }