Exemplo n.º 1
0
 private void toolStripButton6_Click(object sender, EventArgs e)
 {
     if (txtIdCamion.Text != "" && txtPatente.Text != "" && txtModelo.Text != "")
     {
         Camion objCamion = new Camion();
         objCamion.Patente  = txtPatente.Text;
         objCamion.Idmodelo = Convert.ToInt32(txtId.Text);
         objCamion.Idcamion = Convert.ToInt32(txtIdCamion.Text);
         objCamion.editarCamion();
         MessageBox.Show("Camión editado con éxito");
         cargasPorDefecto();
     }
     else
     {
         MessageBox.Show("No deben haber campos vacíos");
     }
 }