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

            UpdateTreeView(treeView.Nodes[0], role.Functions);
        }
Example #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();
        }
Example #3
0
        private void ShowMenu()
        {
            var biz = new RoleBiz();
            var role = biz.LoadItem(CurrentUser.Type);

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