示例#1
0
 protected override void OnLoad(EventArgs e)
 {
     this.SemesterField.DataSource = SemesterLogic.GetAll();
     this.SemesterField.DataBind();
     this.TeacherField.DataSource = TeacherLogic.GetAll();
     this.TeacherField.DataBind();
     this.CourseStatusField.DataSource = Enum.GetValues(typeof(DataAccess.CourseStatus));
     this.CourseStatusField.DataBind();
 }
示例#2
0
 private void BindList()
 {
     ListControl.DataBind(SemesterLogic.GetAll().ToList());
 }
示例#3
0
 /// <summary>Gets a list of all of the Semesters in the database.</summary>
 /// <returns>An IEnumerable of Semesters.</returns>
 public IEnumerable <SO.Semester> GetSemesters(int page)
 {
     return(ServiceUtil.GetPage(SemesterLogic.GetAll(), page).Select(o => SO.Semester.FromDataAccessObject(o)));
 }
示例#4
0
 /// <summary>Gets a list of all of the Semesters in the database.</summary>
 /// <returns>An IEnumerable of Semesters.</returns>
 public IEnumerable <SO.Semester> GetSemesters(string page)
 {
     return(GetPage(SemesterLogic.GetAll(), page).Select(o => SO.Semester.FromDataAccessObject(o)));
 }