本文介绍了Windows窗体应用程序中的用户角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C#的新手,我想管理我的桌面应用程序的角色.现在,当基于用户权限登录并存储在数据库中时,我想使控件可见或启用.知道如何执行此操作吗?
PS:该表是每种形式的每个控件的用户权限,我在想这样的表,它有4列PROFILE-这是用户配置文件TYPE-可能是按钮菜单...模块-我的应用程序引用-可能是buttonAdd或ButtonSearch ...以及最后一列VALUE-每个模块中每个引用的true或false
提前thnx

hi i''m new to C# and i want to manage role for my desktop application. now when a user login based on his right that are stored in database i want to make the control visible or enabled. any idea how to do this ?
P.S: the table in which are the user right for each control in each form i was thinking something like this a table with 4 columns PROFILE- which is user profile TYPE- which may be button menu... Module - my application forms REFERENCE - which may be buttonAdd or ButtonSearch ... and the last Column VALUE - that is true or false for each Reference in each Module
thnx in advance

推荐答案


这篇关于Windows窗体应用程序中的用户角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 12:12
查看更多