public void LoadLessonDetailSet(int _index) { var x = new LessonNumletSet(); x.MyWorkSpaceParent = this.MyWorkSpaceParent; x.MyLessonListParent = this as LessonList <LessonNumletSet>; x.LessonDetail = this.LessonDetail[_index]; this._currentLessonDetailSet = x; base.Add((T)x); }
public void LoadAllLessonDetailSets() { // Walk through all controls in for (int i = 0; i < this.LessonDetail.Count; i++) { var x = new LessonNumletSet(); x.MyWorkSpaceParent = this.MyWorkSpaceParent; x.MyLessonListParent = this as LessonList <LessonNumletSet>; x.LessonDetail = this.LessonDetail[i]; base.Add((T)x); } }
public void Add(EntityLessonDetail _lessonDetail) { // Check if this lessondetail has been loaded if (!this.Any(y => y.LessonDetail.LessonSeq == _lessonDetail.LessonSeq)) { // ******************* // Creation of LessonNumletSet var x = new LessonNumletSet(); x.MyWorkSpaceParent = this.MyWorkSpaceParent; x.MyLessonListParent = this as LessonList <LessonNumletSet>; x.LessonDetail = _lessonDetail; } }
public LessonNumletSet Prev() { // Set all state for the current list this.SetLessonListState(); // Set a current Lesson var intNextIndex = this.CurrentIndex - 1; if (intNextIndex < 0) { this.bOverIndex = true; this._currentLessonDetailSet = this[0]; } else { this.bOverIndex = false; this._currentLessonDetailSet = this[intNextIndex]; } return(this.CurrentLessonDetailSet); }
public LessonNumletSet Next() { // Set all state for the current list this.SetLessonListState(); // Set a current Lesson var intNextIndex = this.CurrentIndex + 1; if (intNextIndex >= (this.Count)) { this.bOverIndex = true; this._currentLessonDetailSet = this[this.Count - 1]; } else { this.bOverIndex = false; this._currentLessonDetailSet = this[intNextIndex]; } return(this.CurrentLessonDetailSet); }