private void btnModif_Click(object sender, EventArgs e) { if (tbNumV.Text == "" || tbOrig.Text == "" || tbPasaj.Text == "" || tbPeaj.Text == "" || tbTotal.Text == "" || tbNafta.Text == "" || tbMEspe.Text == "" || tbKM.Text == "" || tbImporte.Text == "" || tbImpEsp.Text == "" || tbGNC.Text == "" || tbEmpr.Text == "" || tbDes.Text == "") { MessageBox.Show("Por favor complete todos los campos"); } else { Editar(); MessageBox.Show("¡Datos modificados con éxito!"); Limpiartb(); Tabla tabla = new Tabla(); tabla.Show(); this.Dispose(); } }
private void Agregar_FormClosing(object sender, FormClosingEventArgs e) { Tabla frmTabla = new Tabla(); frmTabla.Show(); }
private void btnMesAct_Click(object sender, EventArgs e) { this.Hide(); tbl.Show(); }