/// <summary> /// 得到某用户的权限(所能做的操作),并表现出来 /// </summary> private void GetFuncByUser(string id) { this.list = SysUserMgr.GetOneListByUser(id); for (int i = 0; i < tvwFunc.Nodes.Count; i++) { tvwFunc.Nodes[i].Checked = false; } for (int i = 0; i < tvwFunc.Nodes.Count; i++) { this.GetNodes(this.tvwFunc.Nodes[i]); } }
/// <summary> /// 得到某用户的权限(所能做的操作),并表现出来 /// </summary> private void GetFuncByUser() { this.list = SysUserMgr.GetOneListByUser(this.lstUser.SelectedItem.ToString()); for (int i = 0; i < tvwFunc.Nodes.Count; i++) { tvwFunc.Nodes[i].Checked = false; } for (int i = 0; i < tvwFunc.Nodes.Count; i++) { this.GetNodes(this.tvwFunc.Nodes[i]); } }