/// <summary>
 /// Adds a side menu group to the control.
 /// </summary>
 /// <param name="smg">Side menu control to add.</param>
 public void AddSideMenuGroup(CtrlSideMenuGroup smg)
 {
     smg.Dock = DockStyle.Top;
     Controls.Add(smg);
     smg.BringToFront();
     MenuGroups.Add(smg);
 }
示例#2
0
 private void BuildSideMenu()
 {
     if (AdminMode)
     {
         CtrlSideMenuGroup smg1 = new CtrlSideMenuGroup(Properties.Resources.Stammdatenpflege, true);
         smg1.AddLinkItem("raum", Properties.Resources.Raum, RaumCtrl);
         smg1.AddLinkItem("standardraum", Properties.Resources.Standardraum, StandardRoomCtrl);
         smg1.AddLinkItem("dozent", Properties.Resources.Dozent, TutorCtrl);
         smg1.AddLinkItem("fach", Properties.Resources.Fach, SubjectCtrl);
         smg1.AddLinkItem("studienrichtung", Properties.Resources.Studienrichtung, FieldStudyCtrl);
         smg1.AddLinkItem("seminargruppe", Properties.Resources.Seminargruppe, SemGrpCtrl);
         smg1.AddLinkItem("studienzeitraum", Properties.Resources.Studienzeitraum, ClassPeriodCtrl);
         smg1.AddLinkItem("curriculum", Properties.Resources.Curriculum, CurriculumCtrl);
         ctrlSideMenu.AddSideMenuGroup(smg1);
         CtrlSideMenuGroup smg2 = new CtrlSideMenuGroup(Properties.Resources.Planerstellung, true);
         smg2.AddLinkItem("planerstellung", Properties.Resources.Plan_erstellen, SchedulingCtrl);
         ctrlSideMenu.AddSideMenuGroup(smg2);
     }
     else
     {
         CtrlSideMenuGroup smg = new CtrlSideMenuGroup(Properties.Resources.Stundenplaene, true);
         smg.AddLinkItem("planerstellung", Properties.Resources.Stundenplaene_ansehen, SchedulingCtrl);
         ctrlSideMenu.AddSideMenuGroup(smg);
     }
 }