private void RoleAuthority_Load(object sender, EventArgs e) { try { //选择role_function中权限 dt = rolePresenter.GetAuthListByRoleId(roleid); rolePresenter.AddTree(dt, treeView1, -1, (TreeNode)null); treeView1.ExpandAll();//默认展开所有节点 } catch (Exception funce) { MessageBox.Show(this.Parent, "System error" + funce.Message); } }
private void RoleManage_Load(object sender, EventArgs e) { lbStatus.Text = ""; groupBox1.Text = "角色详细信息"; rolePresenter.AddTree(treeViewRole); }