public bool UpdateCourseExpectations(LbcExpectationIndex newIndex, Course crs, ref ObservableCollection<CourseMeta> metaData)
        {
            CourseMeta tmpMeta;

            try
            {
                //Update the course's expectation start and stop code
                crs.ExpectationCodeStart = long.Parse(newIndex.CodeStart);
                crs.ExpectationCodeStop = long.Parse(newIndex.CodeEnd);

                //Find the meta data record for the current course
                tmpMeta = metaData.Where(m => m.CourseID == crs.ID).First();

                //Load the new expectations for the given course
                if (crs.ExpectationCodeStart != null && crs.ExpectationCodeStop != null)
                {
                    tmpMeta.CourseExpectations = LoadCourseExpectations(crs.ExpectationCodeStart, crs.ExpectationCodeStop);
                }

                return true;
            }
            catch
            {
                return false;
            }
        }
 private void DisplayAlignmentInfo(LbcExpectationIndex alignment)
 {
     cboAlign1Source.Text = alignment.Txt_source;
     cboAlign1Grade.Text = alignment.Txt_grade;
     cboAlign1Area.Text = alignment.Txt_area;
     cboAlign1Course.Text = alignment.Txt_course;
     cboAlign1Version.Text = alignment.Version.ToString();
 }
 /// <summary>
 /// Update the specified course's alignment and load the expectations into the course's metadata
 /// </summary>
 /// <param name="newIndex"></param>
 /// <param name="crs"></param>
 /// <returns></returns>
 public bool UpdateCourseAlignment(LbcExpectationIndex newIndex, Course crs)
 {
     return expectationModel.UpdateCourseExpectations(newIndex, crs, ref _CoursesMeta);
 }