/// <summary> /// 授权按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AuthorizationBtn_Click(object sender, RoutedEventArgs e) { if (UserRole != null && UserRole.T_SYS_ROLE != null) { SysRoleSetMenu2 UserInfo = new SysRoleSetMenu2(UserRole.T_SYS_ROLE); EntityBrowser browser = new EntityBrowser(UserInfo); browser.MinWidth = 850; browser.MinHeight = 500; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent); browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true); } }
private void AuthorizationBtn_Click(object sender, RoutedEventArgs e) { Button AuthorBtn = sender as Button; T_SYS_ROLE_V AuthorRole = AuthorBtn.Tag as T_SYS_ROLE_V; T_SYS_ROLE role = new T_SYS_ROLE(); role.ROLEID = AuthorRole.ROLEID; //SysRoleSetMenu UserInfo = new SysRoleSetMenu(AuthorRole); SysRoleSetMenu2 UserInfo = new SysRoleSetMenu2(role);//龙康才新增 EntityBrowser browser = new EntityBrowser(UserInfo); browser.MinWidth = 850; browser.MinHeight = 500; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => {}, true); }