172 lines
5.0 KiB
C#
172 lines
5.0 KiB
C#
//-----------------------------------------------------------------------
|
|
// <copyright file="LecturePageModel.xaml.cs" company="BTU/IIT">
|
|
// Company copyright tag.
|
|
// </copyright>
|
|
// <author>stubbfel</author>
|
|
// <sience>18.06.2013</sience>
|
|
//----------------------------------------------------------------------
|
|
namespace CampusAppWP8.Model.Lecture
|
|
{
|
|
using CampusAppWP8.Model.Utility;
|
|
using CampusAppWP8.Resources;
|
|
using System.Collections.Generic;
|
|
|
|
public class LecturePageModel
|
|
{
|
|
#region Members
|
|
|
|
/// <summary>
|
|
/// List for the courses of the BTU
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// need to be extend to full list
|
|
/// </remarks>
|
|
private List<ListPickerItemModel> courseList;
|
|
|
|
/// <summary>
|
|
/// List of the degrees
|
|
/// </summary>
|
|
private List<ListPickerItemModel> degreeList;
|
|
|
|
/// <summary>
|
|
/// List of the semester
|
|
/// </summary>
|
|
private List<ListPickerItemModel> semesterList;
|
|
|
|
/// <summary>
|
|
/// List for the number of semester
|
|
/// </summary>
|
|
private List<ListPickerItemModel> numberList;
|
|
|
|
#endregion
|
|
|
|
#region Constructor
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="LecturePageModel" /> class.
|
|
/// </summary>
|
|
public LecturePageModel()
|
|
{
|
|
}
|
|
#endregion
|
|
|
|
#region Proberty
|
|
|
|
/// <summary>
|
|
/// Gets List for the courses of the BTU
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// need to be extend to full list
|
|
/// </remarks>
|
|
public List<ListPickerItemModel> CourseList
|
|
{
|
|
get
|
|
{
|
|
return this.courseList;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets List of the degrees
|
|
/// </summary>
|
|
public List<ListPickerItemModel> DegreeList
|
|
{
|
|
get
|
|
{
|
|
return this.degreeList;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets List of the semester
|
|
/// </summary>
|
|
public List<ListPickerItemModel> SemesterList
|
|
{
|
|
get
|
|
{
|
|
return this.semesterList;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets List for the number of semester
|
|
/// </summary>
|
|
public List<ListPickerItemModel> NumberList
|
|
{
|
|
get
|
|
{
|
|
return this.numberList;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
#region public
|
|
|
|
/// <summary>
|
|
/// Load all ListpickerLists
|
|
/// </summary>
|
|
public void LoadLists()
|
|
{
|
|
this.LoadCourseList();
|
|
this.LoadDegreeList();
|
|
this.LoadNumberList();
|
|
this.LoadSemesterList();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region private
|
|
|
|
/// <summary>
|
|
/// Load the NumberList
|
|
/// </summary>
|
|
private void LoadNumberList()
|
|
{
|
|
this.numberList = new List<ListPickerItemModel>();
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "1", Value = "1" });
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "2", Value = "2" });
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "3", Value = "3" });
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "4", Value = "4" });
|
|
}
|
|
|
|
/// <summary>
|
|
/// Load the SemesterList
|
|
/// </summary>
|
|
private void LoadSemesterList()
|
|
{
|
|
this.semesterList = new List<ListPickerItemModel>();
|
|
this.semesterList.Add(new ListPickerItemModel() { Text = "SoSe 13", Value = "20131" });
|
|
this.semesterList.Add(new ListPickerItemModel() { Text = "WiSe 13/14", Value = "20132" });
|
|
this.semesterList.Add(new ListPickerItemModel() { Text = "SoSe 14", Value = "20131" });
|
|
}
|
|
|
|
/// <summary>
|
|
/// Load the DegreeList
|
|
/// </summary>
|
|
private void LoadDegreeList()
|
|
{
|
|
this.degreeList = new List<ListPickerItemModel>();
|
|
this.degreeList.Add(new ListPickerItemModel() { Text = AppResources.Degree_Bachelor, Value = "82" });
|
|
this.degreeList.Add(new ListPickerItemModel() { Text = AppResources.Degree_Master, Value = "88" });
|
|
this.degreeList.Add(new ListPickerItemModel() { Text = AppResources.Degree_Diploma, Value = "11" });
|
|
}
|
|
|
|
/// <summary>
|
|
/// Load the DegreeList
|
|
/// </summary>
|
|
private void LoadCourseList()
|
|
{
|
|
this.courseList = new List<ListPickerItemModel>();
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Architektur", Value = "013" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Bauingenieurwesen", Value = "017" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Betriebswirtschaftslehre", Value = "021" });
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
}
|
|
}
|