private void nbcLeftTree_ActiveGroupChanged(object sender, DevExpress.XtraNavBar.NavBarGroupEventArgs e) { plRightContent.Controls.Clear(); if (e.Group.ControlContainer != null) { if (e.Group.ControlContainer.Controls.Count >= 1) { if (e.Group.ControlContainer.Controls[0] is TreeList) { TreeList tl = ((TreeList)e.Group.ControlContainer.Controls[0]); if (tl.Nodes.Count >= 1) { tl.SetFocusedNode(tl.Nodes[0]); showModule(e.Group.Caption + "xxxx" + tl.Nodes[0].GetDisplayText(0), true); } } } } else { if (e.Group.Caption == "信息提醒") { showModule(e.Group.Caption + "xxxx" + "信息提醒", true); } } }
private void navCtrlOrderSuit_ActiveGroupChanged(object sender, DevExpress.XtraNavBar.NavBarGroupEventArgs e) { if (SuiteType == DataApplyRange.Individual) { navGroupPersonalContainer.Controls.Add(gridCtrlSuit); } else if (SuiteType == DataApplyRange.Department) { navGroupDeptContainer.Controls.Add(gridCtrlSuit); } //else // navGroupHospitalContainer.Controls.Add(gridCtrlSuit); gridCtrlSuit.BringToFront(); FilterData(); }
void navBarControl_ActiveGroupChanged(object sender, DevExpress.XtraNavBar.NavBarGroupEventArgs e) { navigationFrame.SelectedPageIndex = navBarControl.Groups.IndexOf(e.Group); }
private void navBarControl1_ActiveGroupChanged(object sender, DevExpress.XtraNavBar.NavBarGroupEventArgs e) { object data = GetModuleData((NavBarGroupTagObject)e.Group.Tag); modulesNavigator.ChangeGroup(e.Group, data); }