private void btnActualizar_Click(object sender, EventArgs e) { if (txtId.Text == "" || txtNombre.Text == "") { MessageBox.Show("Se Deben Llenar Todos Los Campos"); } else { DateTime FechaActualizacion = DateTime.Now; objetoArea.ActualizarArea(int.Parse(txtId.Text), txtNombre.Text, FechaActualizacion.ToString("yyyy-MM-dd HH:mm:ss")); txtId.Text = ""; txtNombre.Text = ""; Llenar_TablaAreas(); } }