LecturePageModel.cs CampusAppWP8::Model::Lecture::LecturePageModel CampusAppWP8::Model::Lecture System::Runtime::Serialization //----------------------------------------------------------------------- //<copyrightfile="LecturePageModel.cs"company="BTU/IIT"> //Companycopyrighttag. //</copyright> //<author>stubbfel</author> //<sience>18.06.2013</sience> //---------------------------------------------------------------------- namespaceCampusAppWP8.Model.Lecture { usingSystem.Collections.Generic; <<<<<<< HEAD usingSystem.Runtime.Serialization; usingCampusAppWP8.Model.Utility; usingCampusAppWP8.Resources; [DataContract] publicclassLecturePageModel { #regionMembers privateList<ListPickerItemModel>courseList; privateList<ListPickerItemModel>degreeList; privateList<ListPickerItemModel>semesterList; privateList<ListPickerItemModel>numberList; #endregion #regionConstructor publicLecturePageModel() { } #endregion #regionProberty [DataMember] publicintSelectCourseIndex{get;set;} [DataMember] publicintSelectDegreeIndex{get;set;} [DataMember] publicintSelectSemesterIndex{get;set;} [DataMember] publicintSelectFromIndex{get;set;} [DataMember] publicintSelectToIndex{get;set;} publicList<ListPickerItemModel>CourseList { get { returnthis.courseList; } } publicList<ListPickerItemModel>DegreeList { get { returnthis.degreeList; } } publicList<ListPickerItemModel>SemesterList { get { returnthis.semesterList; } } publicList<ListPickerItemModel>NumberList { get { returnthis.numberList; } } #endregion #regionMethods #regionpublic publicvoidLoadLists() { this.LoadCourseList(); this.LoadDegreeList(); this.LoadNumberList(); this.LoadSemesterList(); } #endregion #regionprivate privatevoidLoadNumberList() { this.numberList=newList<ListPickerItemModel>(); this.numberList.Add(newListPickerItemModel(){Text="1",Value="1"}); this.numberList.Add(newListPickerItemModel(){Text="2",Value="2"}); this.numberList.Add(newListPickerItemModel(){Text="3",Value="3"}); this.numberList.Add(newListPickerItemModel(){Text="4",Value="4"}); } privatevoidLoadSemesterList() { this.semesterList=newList<ListPickerItemModel>(); this.semesterList.Add(newListPickerItemModel(){Text="SoSe13",Value="20131"}); this.semesterList.Add(newListPickerItemModel(){Text="WiSe13/14",Value="20132"}); this.semesterList.Add(newListPickerItemModel(){Text="SoSe14",Value="20131"}); } privatevoidLoadDegreeList() { this.degreeList=newList<ListPickerItemModel>(); this.degreeList.Add(newListPickerItemModel(){Text=AppResources.Degree_Bachelor,Value="82"}); this.degreeList.Add(newListPickerItemModel(){Text=AppResources.Degree_Master,Value="88"}); this.degreeList.Add(newListPickerItemModel(){Text=AppResources.Degree_Diploma,Value="11"}); } privatevoidLoadCourseList() { this.courseList=newList<ListPickerItemModel>(); this.courseList.Add(newListPickerItemModel(){Text="Architektur",Value="013"}); this.courseList.Add(newListPickerItemModel(){Text="Bauingenieurwesen",Value="017"}); this.courseList.Add(newListPickerItemModel(){Text="Betriebswirtschaftslehre",Value="021"}); this.courseList.Add(newListPickerItemModel(){Text="WirtschaftsrechtfürTechnologieunternehmen",Value="042"}); this.courseList.Add(newListPickerItemModel(){Text="Elektrotechnik",Value="048"}); this.courseList.Add(newListPickerItemModel(){Text="Informatik",Value="079"}); this.courseList.Add(newListPickerItemModel(){Text="Maschinenbau",Value="104"}); this.courseList.Add(newListPickerItemModel(){Text="Mathematik",Value="105"}); this.courseList.Add(newListPickerItemModel(){Text="Physik",Value="128"}); this.courseList.Add(newListPickerItemModel(){Text="Wirtschaftsingenieurwesen",Value="179"}); this.courseList.Add(newListPickerItemModel(){Text="Wirtschaftswissenschaften",Value="184"}); this.courseList.Add(newListPickerItemModel(){Text="BiomedizinischeGerätetechnik",Value="215"}); this.courseList.Add(newListPickerItemModel(){Text="Verfahrenstechnik",Value="226"}); this.courseList.Add(newListPickerItemModel(){Text="Wirtschaftsmathematik",Value="276"}); this.courseList.Add(newListPickerItemModel(){Text="KulturundTechnik",Value="711"}); this.courseList.Add(newListPickerItemModel(){Text="PhysikderHalbleiter-Technologie",Value="744"}); this.courseList.Add(newListPickerItemModel(){Text="AngewandteMathematik",Value="749"}); this.courseList.Add(newListPickerItemModel(){Text="Technologie-undInnovationsmanagement",Value="764"}); this.courseList.Add(newListPickerItemModel(){Text="Stadt-undRegionalplanung",Value="766"}); this.courseList.Add(newListPickerItemModel(){Text="Informations-undMedientechnik",Value="767"}); this.courseList.Add(newListPickerItemModel(){Text="WorldHeritageStudies",Value="768"}); this.courseList.Add(newListPickerItemModel(){Text="UmweltingenieurwesenundVerfahrenstechnik",Value="770"}); this.courseList.Add(newListPickerItemModel(){Text="EnvironmentalandResourceManagement",Value="771"}); this.courseList.Add(newListPickerItemModel(){Text="LandnutzungundWasserbewirtschaftung",Value="772"}); this.courseList.Add(newListPickerItemModel(){Text="BauenundErhalten",Value="773"}); this.courseList.Add(newListPickerItemModel(){Text="Umweltingenieurwesen",Value="774"}); this.courseList.Add(newListPickerItemModel(){Text="eBusiness",Value="794"}); this.courseList.Add(newListPickerItemModel(){Text="CivilEngineering",Value="798"}); this.courseList.Add(newListPickerItemModel(){Text="StructuralEngineering",Value="799"}); this.courseList.Add(newListPickerItemModel(){Text="ElectricalPowerEngineering",Value="800"}); this.courseList.Add(newListPickerItemModel(){Text="EuroHydroinformaticsandWaterManagement",Value="841"}); this.courseList.Add(newListPickerItemModel(){Text="TechnologienBiogenerRohstoffe",Value="842"}); this.courseList.Add(newListPickerItemModel(){Text="EnvironmentalTechnologies",Value="843"}); this.courseList.Add(newListPickerItemModel(){Text="ProcessEngineeringandPlantDesign",Value="844"}); this.courseList.Add(newListPickerItemModel(){Text="Architekturvermittlung",Value="845"}); this.courseList.Add(newListPickerItemModel(){Text="NachwachsendeRohstoffeundErneuerbareEnergien",Value="851"}); this.courseList.Add(newListPickerItemModel(){Text="EnergieträgerausBiomasseundAbfällen",Value="852"}); this.courseList.Add(newListPickerItemModel(){Text="PowerEngineering",Value="853"}); this.courseList.Add(newListPickerItemModel(){Text="Verfahrenstechnik-Prozess-undAnlagentechnik",Value="857"}); this.courseList.Add(newListPickerItemModel(){Text="Architektur.Studium.Generale",Value="858"}); this.courseList.Add(newListPickerItemModel(){Text="VerarbeitungstechnologienderWerkstoffe",Value="860"}); this.courseList.Add(newListPickerItemModel(){Text="ForensicSciencesandEngineering",Value="871"}); } #endregion #endregion } } ======= usingSystem.Linq; usingSystem.Runtime.Serialization; usingCampusAppWP8.Model.Utility; usingCampusAppWP8.Resources; [DataContract] publicclassLecturePageModel { #regionMembers privateList<ListPickerItemModel>courseList; privateList<ListPickerItemModel>degreeList; privateList<ListPickerItemModel>semesterList; privateList<ListPickerItemModel>numberList; #endregion #regionConstructor publicLecturePageModel() { } #endregion #regionProberty [DataMember] publicintSelectCourseIndex{get;set;} [DataMember] publicintSelectDegreeIndex{get;set;} [DataMember] publicintSelectSemesterIndex{get;set;} [DataMember] publicintSelectFromIndex{get;set;} [DataMember] publicintSelectToIndex{get;set;} publicList<ListPickerItemModel>CourseList { get { returnthis.courseList; } } publicList<ListPickerItemModel>DegreeList { get { returnthis.degreeList; } } publicList<ListPickerItemModel>SemesterList { get { returnthis.semesterList; } } publicList<ListPickerItemModel>NumberList { get { returnthis.numberList; } } #endregion #regionMethods #regionpublic publicvoidLoadLists() { this.LoadCourseList(); this.LoadDegreeList(); this.LoadNumberList(); this.LoadSemesterList(); } #endregion #regionprivate privatevoidLoadNumberList() { this.numberList=newList<ListPickerItemModel>(); this.numberList.Add(newListPickerItemModel(){Text="1",Value="1"}); this.numberList.Add(newListPickerItemModel(){Text="2",Value="2"}); this.numberList.Add(newListPickerItemModel(){Text="3",Value="3"}); this.numberList.Add(newListPickerItemModel(){Text="4",Value="4"}); this.numberList.Add(newListPickerItemModel(){Text="5",Value="5"}); this.numberList.Add(newListPickerItemModel(){Text="5",Value="6"}); this.numberList.Add(newListPickerItemModel(){Text="7",Value="7"}); this.numberList.Add(newListPickerItemModel(){Text="8",Value="8"}); this.numberList.Add(newListPickerItemModel(){Text="9",Value="9"}); this.numberList.Add(newListPickerItemModel(){Text="10",Value="10"}); } privatevoidLoadSemesterList() { this.semesterList=newList<ListPickerItemModel>(); this.semesterList.Add(newListPickerItemModel(){Text="SoSe13",Value="20131"}); this.semesterList.Add(newListPickerItemModel(){Text="WiSe13/14",Value="20132"}); this.semesterList.Add(newListPickerItemModel(){Text="SoSe14",Value="20131"}); } privatevoidLoadDegreeList() { this.degreeList=newList<ListPickerItemModel>(); this.degreeList.Add(newListPickerItemModel(){Text=AppResources.Degree_Bachelor,Value="82"}); this.degreeList.Add(newListPickerItemModel(){Text=AppResources.Degree_Master,Value="88"}); this.degreeList.Add(newListPickerItemModel(){Text=AppResources.Degree_Diploma,Value="11"}); } privatevoidLoadCourseList() { this.courseList=newList<ListPickerItemModel>(); this.courseList.Add(newListPickerItemModel(){Text="Architektur",Value="013"}); this.courseList.Add(newListPickerItemModel(){Text="Bauingenieurwesen",Value="017"}); this.courseList.Add(newListPickerItemModel(){Text="Betriebswirtschaftslehre",Value="021"}); this.courseList.Add(newListPickerItemModel(){Text="WirtschaftsrechtfürTechnologieunternehmen",Value="042"}); this.courseList.Add(newListPickerItemModel(){Text="Elektrotechnik",Value="048"}); this.courseList.Add(newListPickerItemModel(){Text="Informatik",Value="079"}); this.courseList.Add(newListPickerItemModel(){Text="Maschinenbau",Value="104"}); this.courseList.Add(newListPickerItemModel(){Text="Mathematik",Value="105"}); this.courseList.Add(newListPickerItemModel(){Text="Physik",Value="128"}); this.courseList.Add(newListPickerItemModel(){Text="Wirtschaftsingenieurwesen",Value="179"}); this.courseList.Add(newListPickerItemModel(){Text="Wirtschaftswissenschaften",Value="184"}); this.courseList.Add(newListPickerItemModel(){Text="BiomedizinischeGerätetechnik",Value="215"}); this.courseList.Add(newListPickerItemModel(){Text="Verfahrenstechnik",Value="226"}); this.courseList.Add(newListPickerItemModel(){Text="Wirtschaftsmathematik",Value="276"}); this.courseList.Add(newListPickerItemModel(){Text="KulturundTechnik",Value="711"}); this.courseList.Add(newListPickerItemModel(){Text="PhysikderHalbleiter-Technologie",Value="744"}); this.courseList.Add(newListPickerItemModel(){Text="AngewandteMathematik",Value="749"}); this.courseList.Add(newListPickerItemModel(){Text="Technologie-undInnovationsmanagement",Value="764"}); this.courseList.Add(newListPickerItemModel(){Text="Stadt-undRegionalplanung",Value="766"}); this.courseList.Add(newListPickerItemModel(){Text="Informations-undMedientechnik",Value="767"}); this.courseList.Add(newListPickerItemModel(){Text="WorldHeritageStudies",Value="768"}); this.courseList.Add(newListPickerItemModel(){Text="UmweltingenieurwesenundVerfahrenstechnik",Value="770"}); this.courseList.Add(newListPickerItemModel(){Text="EnvironmentalandResourceManagement",Value="771"}); this.courseList.Add(newListPickerItemModel(){Text="LandnutzungundWasserbewirtschaftung",Value="772"}); this.courseList.Add(newListPickerItemModel(){Text="BauenundErhalten",Value="773"}); this.courseList.Add(newListPickerItemModel(){Text="Umweltingenieurwesen",Value="774"}); this.courseList.Add(newListPickerItemModel(){Text="eBusiness",Value="794"}); this.courseList.Add(newListPickerItemModel(){Text="CivilEngineering",Value="798"}); this.courseList.Add(newListPickerItemModel(){Text="StructuralEngineering",Value="799"}); this.courseList.Add(newListPickerItemModel(){Text="ElectricalPowerEngineering",Value="800"}); this.courseList.Add(newListPickerItemModel(){Text="EuroHydroinformaticsandWaterManagement",Value="841"}); this.courseList.Add(newListPickerItemModel(){Text="TechnologienBiogenerRohstoffe",Value="842"}); this.courseList.Add(newListPickerItemModel(){Text="EnvironmentalTechnologies",Value="843"}); this.courseList.Add(newListPickerItemModel(){Text="ProcessEngineeringandPlantDesign",Value="844"}); this.courseList.Add(newListPickerItemModel(){Text="Architekturvermittlung",Value="845"}); this.courseList.Add(newListPickerItemModel(){Text="NachwachsendeRohstoffeundErneuerbareEnergien",Value="851"}); this.courseList.Add(newListPickerItemModel(){Text="EnergieträgerausBiomasseundAbfällen",Value="852"}); this.courseList.Add(newListPickerItemModel(){Text="PowerEngineering",Value="853"}); this.courseList.Add(newListPickerItemModel(){Text="Verfahrenstechnik-Prozess-undAnlagentechnik",Value="857"}); this.courseList.Add(newListPickerItemModel(){Text="Architektur.Studium.Generale",Value="858"}); this.courseList.Add(newListPickerItemModel(){Text="VerarbeitungstechnologienderWerkstoffe",Value="860"}); this.courseList.Add(newListPickerItemModel(){Text="ForensicSciencesandEngineering",Value="871"}); this.courseList=this.courseList.OrderBy(o=>o.Text).ToList(); } #endregion #endregion } } >>>>>>> develmaster