Пример #1
0
 private void AuthorizationBtn_Click(object sender, RoutedEventArgs e)
 {
     Button AuthorBtn = sender as Button;
     T_SYS_ROLE AuthorRole = AuthorBtn.Tag as T_SYS_ROLE;            
     //SysRoleSetMenu UserInfo = new SysRoleSetMenu(AuthorRole);
     SysRoleSetMenuPermisstion UserInfo = new SysRoleSetMenuPermisstion(AuthorRole);//龙康才新增
     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);
 }
Пример #2
0
 /// <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)
     {
         SysRoleSetMenuPermisstion UserInfo = new SysRoleSetMenuPermisstion(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);
     }
 }