private void BtAgregar_Click(object sender, EventArgs e)
        {
            int    NidUsr;
            string IdNuevo;

            newID.Text = Convert.ToString(sql.ObtidnewUser());
            NidUsr     = Convert.ToInt32(newID.Text);

            if (newID.Text == Convert.ToString(NidUsr))

            {
                IdNuevo = Convert.ToString(NidUsr + 1);

                IDuser.Text = IdNuevo;
            }
            int tipo = 0;;

            if (selectAdm.Checked)
            {
                tipo = 1;
            }
            else if (selecVende.Checked)
            {
                tipo = 2;
            }
            //string pass = "";
            //if (btAgregar.Capture==true)
            //{ pass = PassUser.Text;
            //    Seguridad.Cifrar(pass);
            //}

            if (ValidarCampos() && sql.ExisteUser(NomUser.Text) && sql.InsertUser(IDuser.Text, NomUser.Text, PassUser.Text = Seguridad.Cifrar(PassUser.Text), tipo))
            {
                MessageBox.Show("Datos ingresado Correctamente", "ValidaciĆ³n", MessageBoxButtons.OK, MessageBoxIcon.Information);
                tbuser.DataSource = sql.MostrarUser();
                LimUser();
            }

            else
            {
                MessageBox.Show("No se han podido insertar los datos", "Por favor verificar los datos", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }