/// <summary> /// 选择当前查看的用户权限页 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void TabControlUserPower_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e) { try { if (e.Page == PageRole) { roleForm.QueryMenuTreeList(); roleForm.gridViewRole_FocusedRowChanged(null, null); } } catch (Exception ex) { //ExceptionHandler.HandleException(this.Text + "--选择当前查看的用户权限页错误。", ex); ExceptionHandler.HandleException(this.Text + "--" + tsmiXz.Text, ex); } }
/// <summary> /// 选择当前查看的用户权限页 /// </summary> private void TabControlUserPower_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e) { try { if (e.Page == PageMenuManagement) { if (menuForm == null) { menuForm = new FrmRight_MenuManagement(); menuForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; menuForm.TopLevel = false; menuForm.Dock = DockStyle.Fill; //menuForm.WindowState = FormWindowState.Maximized; PageMenuManagement.Controls.Add(menuForm); menuForm.Show(); } } else if (e.Page == PageRole) { if (roleForm == null) { roleForm = new FrmRight_Role(); roleForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; roleForm.TopLevel = false; roleForm.Dock = DockStyle.Fill; //roleForm.WindowState = FormWindowState.Maximized; PageRole.Controls.Add(roleForm); roleForm.Show(); } roleForm.QueryMenuTreeList(); roleForm.gridViewRole_FocusedRowChanged(null, null); } } catch (Exception ex) { //ExceptionHandler.HandleException(this.Text + "--选择当前查看的用户权限页错误。", ex); ExceptionHandler.HandleException(this.Text + "--" + tsmiXz.Text, ex); } }