示例#1
0
        private void btnGrabar_Click(object sender, EventArgs e)
        {
            Usuario nUsuario = new Usuario(
                0, Convert.ToInt32(cbPerfil.SelectedValue), txtNombre.Text, txtApellidoPa.Text, txtPallidoMa.Text
                , Convert.ToInt32(cbTipDocumento.SelectedValue), Convert.ToInt32(txtNumDocumento.Text), txtUsuario.Text, txtContraseña.Text);

            bLUsuario.GrabarUsuario(nUsuario);

            MessageBox.Show("Usuario creado");
            CargarDatos();
        }