private void button2_Click(object sender, EventArgs e)
        {
            try
            {
                if (string.IsNullOrEmpty(txtNombreEstado.Text))
                {
                    MessageBox.Show("Nombre del estado vacío", "Aviso");

                    return;
                }
                else
                {
                    try
                    {
                        estadoActivos.IdEstadoActivo = Convert.ToInt32(cmbIdEstadoActivo.SelectedValue);
                        estadoActivos.NombreEstado   = txtNombreEstado.Text;
                        EstadoActivosDAL.updateEstadoActivos(estadoActivos);
                        MessageBox.Show("Estado activo modificado", "Confirmacion");
                        this.Close();
                    }
                    catch (Exception)
                    {
                        MessageBox.Show("Hubo un error", "Error");
                    }
                }
            }
            catch (Exception)
            {
                throw;
            }
        }