/// <summary> /// 加载导航栏目 /// </summary> private void LoadNavMenu() { ExpandNavigationMenuItem[] item = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "查询" }, new ExpandNavigationMenuItem() { Text = "更新" }, new ExpandNavigationMenuItem() { Text = "增加" }, new ExpandNavigationMenuItem() { Text = "删除" }, new ExpandNavigationMenuItem() { Text = "下一页", AnchorRight = true }, new ExpandNavigationMenuItem() { Text = "上一页", AnchorRight = true }, }; item[1].Click += OpenUpdate; item[2].Click += OpenInserted; item[3].Click += OpenDelete; item[4].Click += NextPage; item[5].Click += PrePage; ExpandNavigationMenuItem[] serach = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "查询所有" }, new ExpandNavigationMenuItem() { Text = "模糊查询" }, new ExpandNavigationMenuItem() { Text = "授课学生成绩" } }; serach[0].Click += OpenQueryAll; serach[1].Click += FuzzyQuery; serach[2].Click += TeachersStudentCourseFraction; item[0].Items = serach; navMenu.Items = item; navMenu.ClickItemed += NavMenu_ClickItemed; }
//加载导航菜单(横向的) private void LoadNavigationMenuItem() { //加载导航栏菜单项 //为各个菜单项添加事件触发 ExpandNavigationMenuItem[] it1 = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem { Text = "学生信息管理" }, new ExpandNavigationMenuItem { Text = "班级信息管理" }, new ExpandNavigationMenuItem { Text = "课程信息管理" }, new ExpandNavigationMenuItem { Text = "教师信息管理" }, }; it1[0].Click += Click_OpenStudetnInforamationMana; it1[1].Click += Click_OpenClassInforamationMana; it1[2].Click += Click_OpenCourseInforamtionMna; it1[3].Click += Click_OPenTeachInforamtionMana; ExpandNavigationMenuItem[] navigation = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem { Text = "信息管理", Items = it1, ShowTip = true }, new ExpandNavigationMenuItem { Text = "权限管理" }, new ExpandNavigationMenuItem { Text = "学院管理" }, new ExpandNavigationMenuItem { Text = "账户管理", AnchorRight = true }, }; var it2 = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem { Text = "修改密码" }, new ExpandNavigationMenuItem { Text = "退出" }, }; it2[0].Click += Click_OpenModifyPwd; it2[1].Click += Click_LogOut; navigation[3].Items = it2; navigation[1].Click += Click_OpenStudentDeitalMana;; navigation[2].Click += Click_OpenCollegeMana; naMenu.Items = navigation; //控件事件(sender=控件对象) naMenu.ClickItemed += NaMenu_ClickItemed; }
//加载导航栏 private void LoadNavMenuItem() { ExpandNavigationMenuItem[] items = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "查询信息" }, new ExpandNavigationMenuItem() { Text = "更新信息" }, new ExpandNavigationMenuItem() { Text = "插入信息" }, new ExpandNavigationMenuItem() { Text = "删除信息" }, new ExpandNavigationMenuItem() { Text = "下一页", AnchorRight = true }, new ExpandNavigationMenuItem() { Text = "上一页", AnchorRight = true } }; items[1].Click += Click_OpenUpdateDataInforamtion; items[2].Click += Click_OpenInsertDataInforamtion; items[3].Click += Click_DeleteDataInforamtion; items[4].Click += Click_JumpNextPage; items[5].Click += Click_JumpHailPage; var it1 = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "查询所有" }, new ExpandNavigationMenuItem() { Text = "模糊查询" }, }; it1[0].Click += Click_QueryAll; it1[1].Click += Click_QueryOnly; navMenu.Items = items; navMenu.Items[0].Items = it1; navMenu.ClickItemed += Click_Start; }
//加载导航栏 private void LoadNavMenuItem() { ExpandNavigationMenuItem[] items = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "查询信息" }, new ExpandNavigationMenuItem() { Text = "确定选取" }, new ExpandNavigationMenuItem() { Text = "下一页", AnchorRight = true }, new ExpandNavigationMenuItem() { Text = "上一页", AnchorRight = true } }; items[1].Click += SelectStudentRows; items[2].Click += Click_JumpNextPage; items[3].Click += Click_JumpHailPage; var it1 = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "查询所有" }, new ExpandNavigationMenuItem() { Text = "模糊查询" }, }; it1[0].Click += Click_QueryAll; it1[1].Click += Click_QueryOnly; navMenu.Items = items; navMenu.Items[0].Items = it1; navMenu.ClickItemed += Click_Start; }
//加载导航栏 private void LoadNavMenu() { //配置nav导航栏 ExpandNavigationMenuItem[] it1 = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "查询" }, new ExpandNavigationMenuItem() { Text = "更新" }, new ExpandNavigationMenuItem() { Text = "插入" }, new ExpandNavigationMenuItem() { Text = "删除" }, new ExpandNavigationMenuItem() { Text = "下一页", AnchorRight = true }, new ExpandNavigationMenuItem() { Text = "上一页", AnchorRight = true } }; it1[4].Click += NextPage; it1[5].Click += PrePage; ExpandNavigationMenuItem[] it2 = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "课程信息" }, new ExpandNavigationMenuItem() { Text = "学生成绩" }, new ExpandNavigationMenuItem() { Text = "班级开课信息" } }; it1[0].Items = it2; ExpandNavigationMenuItem[] it3 = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "查询所有" }, new ExpandNavigationMenuItem() { Text = "模糊查询" } }; it3[0].Click += OpenCourseDataInformationQueryAll; it3[1].Click += OpenCourseDataInformationFulySearch; it2[0].Items = it3; ExpandNavigationMenuItem[] it4 = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "查询所有" }, new ExpandNavigationMenuItem() { Text = "模糊查询" }, new ExpandNavigationMenuItem() { Text = "查询班级必修课成绩" }, }; it4[0].Click += OpenCourseFactionDataInformationQueryAll;; it4[1].Click += OpenCourseFactionDataInformationFulySerach;; it4[2].Click += OpenClassCompulsoryCourseFaction;;; it2[1].Items = it4; ExpandNavigationMenuItem[] it8 = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "查询所有" }, new ExpandNavigationMenuItem() { Text = "模糊查询" }, }; it8[0].Click += OpenClassOurseDataInformationQueryAll; it8[1].Click += OpenClassCourseDataInforamtionFulySerach;; it2[2].Items = it8; ExpandNavigationMenuItem[] it5 = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "更新班级开课信息" }, new ExpandNavigationMenuItem() { Text = "更新成绩信息" }, new ExpandNavigationMenuItem() { Text = "更新课程信息" }, }; it1[1].Items = it5; it5[0].Click += OpenUpdataCourseDataInformation; it5[1].Click += OpenUpdataCourseFactionDataInformation; it5[2].Click += OpenUpdateCourse;; ExpandNavigationMenuItem[] it6 = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "插入班级开课信息" }, new ExpandNavigationMenuItem() { Text = "插入成绩信息" }, new ExpandNavigationMenuItem() { Text = "插入课程信息" }, }; it6[0].Click += OpenInsertCourseDataInformation; it6[1].Click += OpenInsertCourseFactionDataInformation; it6[2].Click += OpenInsertCourse; it1[2].Items = it6; ExpandNavigationMenuItem[] it7 = new ExpandNavigationMenuItem[] { new ExpandNavigationMenuItem() { Text = "删除班级开课信息" }, new ExpandNavigationMenuItem() { Text = "删除成绩信息" }, new ExpandNavigationMenuItem() { Text = "删除课程信息" }, }; it7[0].Click += OpenDeleteCourseDataInformation;; it7[1].Click += OpenDeleteCourseFactionDataInformation; it7[2].Click += OpenDeleteCourse; it1[3].Items = it7; navMenu.Items = it1; navMenu.ClickItemed += OpenStart; }