Ejemplo n.º 1
0
        // MÉTODO PARA GRABAR EL USUARIO
        private void registro()
        {
            try
            {
                {
                }

                if (txtApellidos.Text != "" & txtNombre.Text != "" & txtPwd.Text != "" & txtUsu.Text != "" & cbo_sexo.Text != "" & cbo_tipoUsuario.Text != "")
                {
                    objUsu.Registrar("", txtApellidos.Text.ToUpper(), txtNombre.Text.ToUpper(), txtUsu.Text.ToUpper(), txtPwd.Text.ToUpper(), cbo_tipoUsuario.Text.ToString(), cbo_sexo.Text.ToString());
                    MessageBox.Show("USUARIO REGISTRADO", "SISTEMA DE LOGIN.", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1);
                    listarUsuarios();
                    limpiar();
                }
                else
                {
                    MessageBox.Show("LLENAR TODOS LOS CAMPOS", "SISTEMA DE LOGIN.", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }