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