private void LoadWeeks()
 {
     foreach (Week week in _contentManager.GetAllWeeks(_contentManager.GetComponent(_selecetedGrade)))
     {
         if (week.Term == 1)
         {
             TermI.Add(week);
         }
         else if (week.Term == 2)
         {
             TermII.Add(week);
         }
         else if (week.Term == 3)
         {
             TermIII.Add(week);
         }
     }
 }
 public void LoadParentComponents()
 {
     if (_topics)
     {
         parentComponents = _contentManager.GetAllTopics();
         numOfLessons     = _contentManager.GetNoOfTopicsLessons();
     }
     else
     {
         parentComponents = _contentManager.GetAllWeeks(_contentManager.GetComponent(_selectedGrade));
         numOfLessons     = _contentManager.GetNoOfLessons(_selectedGrade);
     }
     listBox.ItemsSource       = parentComponents;
     listBox.DisplayMemberPath = "Title";
     listBox.Items.Refresh();
     for (int i = 0; i < 100; i++)
     {
         comboBox.Items.Add((i + 1).ToString());
     }
     comboBox.Text = 1.ToString();
 }