コード例 #1
0
ファイル: selectMedioP.cs プロジェクト: eldie1984/Gestion
 private void button1_Click(object sender, EventArgs e)
 {
     if (comboBox1.SelectedItem != string.Empty)
     {
         User_Compra compra = new User_Compra();
         compra.opcion            = comboBox1.SelectedItem.ToString();
         compra.pasaje_cli_id     = this.pasaje_cli_id;
         compra.butaca_cli_id     = this.butaca_cli_id;
         compra.viaje_id          = this.viaje_id;
         compra.kg                = this.kg;
         compra.discapacitado     = this.discapacitado;
         compra.pasaje_65         = this.pasaje_65;
         compra.has_discapacitado = this.has_discapacitado;
         compra.cant_psj          = this.cant_psj;
         compra.Show();
         this.Close();
     }
 }
コード例 #2
0
ファイル: selectMedioP.cs プロジェクト: eldie1984/Gestion
        private void button1_Click(object sender, EventArgs e)
        {
            if (comboBox1.SelectedItem != string.Empty)
            {
                User_Compra compra = new User_Compra();
                compra.opcion = comboBox1.SelectedItem.ToString();
                compra.pasaje_cli_id = this.pasaje_cli_id;
                compra.butaca_cli_id = this.butaca_cli_id;
                compra.viaje_id = this.viaje_id;
                compra.kg = this.kg;
                compra.discapacitado = this.discapacitado;
                compra.pasaje_65 = this.pasaje_65;
                compra.has_discapacitado = this.has_discapacitado;
                compra.cant_psj = this.cant_psj;
                compra.Show();
                this.Close();

            }
        }