Example #1
0
 private void toolStripButton3_Click(object sender, EventArgs e)
 {
     if (txtPatente.Text != "" && txtModelo.Text != "")
     {
         Camion objCamion = new Camion();
         objCamion.Patente  = txtPatente.Text;
         objCamion.Idmodelo = Convert.ToInt32(txtId.Text);
         objCamion.crearCamion();
         MessageBox.Show("Camion ingresado con exito");
         cargasPorDefecto();
     }
     else
     {
         MessageBox.Show("No deben haber campos vacĂ­os");
     }
     CamionesDGV(dgvCamion);
 }