Beispiel #1
0
        private void ShowMenu()
        {
            var biz  = new RoleBiz();
            var role = biz.LoadItem(CurrentUser.Type);

            UpdateTreeView(treeView.Nodes[0], role.Functions);
        }
Beispiel #2
0
        public RoleForm(int id, User user)
        {
            InitializeComponent();

            textName.Focus();
            itemId = id;

            var biz  = new RoleBiz();
            var item = biz.LoadItem(id);

            textName.Text = item.Name;

            LoadFunctions(item.Functions);
            InitForm(user);

            this.Text = "Sửa quyền truy cập";

            treeFunctions.ExpandAll();
        }
Beispiel #3
0
        private void ShowMenu()
        {
            var biz = new RoleBiz();
            var role = biz.LoadItem(CurrentUser.Type);

            UpdateTreeView(treeView.Nodes[0], role.Functions);
        }