예제 #1
0
        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);
                }
            }
        }
예제 #2
0
        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();
        }
예제 #3
0
 void navBarControl_ActiveGroupChanged(object sender, DevExpress.XtraNavBar.NavBarGroupEventArgs e)
 {
     navigationFrame.SelectedPageIndex = navBarControl.Groups.IndexOf(e.Group);
 }
예제 #4
0
파일: frmMain.cs 프로젝트: 15831944/MESDemo
        private void navBarControl1_ActiveGroupChanged(object sender, DevExpress.XtraNavBar.NavBarGroupEventArgs e)
        {
            object data = GetModuleData((NavBarGroupTagObject)e.Group.Tag);

            modulesNavigator.ChangeGroup(e.Group, data);
        }