Compare commits
9 Commits
initgitflo
...
vsadd#29
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f4034a4f2 | ||
|
|
ec3fd17234 | ||
|
|
bff8eb07c8 | ||
|
|
512d367a7e | ||
|
|
eb533e8008 | ||
|
|
6071f96b3b | ||
|
|
72495a5bc5 | ||
|
|
84266dfb59 | ||
|
|
9c973b2b8f |
@@ -108,13 +108,13 @@
|
|||||||
<Compile Include="Model\Lecture\LectureDate.cs" />
|
<Compile Include="Model\Lecture\LectureDate.cs" />
|
||||||
<Compile Include="Model\Lecture\LectureLecturer.cs" />
|
<Compile Include="Model\Lecture\LectureLecturer.cs" />
|
||||||
<Compile Include="Model\Lecture\LectureList.cs" />
|
<Compile Include="Model\Lecture\LectureList.cs" />
|
||||||
<Compile Include="Model\Lecture\LectureModul.cs" />
|
<Compile Include="Model\Lecture\LectureModule.cs" />
|
||||||
<Compile Include="Model\Mensa\MenuModel.cs" />
|
<Compile Include="Model\Mensa\MenuModel.cs" />
|
||||||
<Compile Include="Model\Mensa\MenuWeekModel.cs" />
|
<Compile Include="Model\Mensa\MenuWeekModel.cs" />
|
||||||
<Compile Include="Pages\Campusmap\CampusMapPage.xaml.cs">
|
<Compile Include="Pages\Campusmap\CampusMapPage.xaml.cs">
|
||||||
<DependentUpon>CampusMapPage.xaml</DependentUpon>
|
<DependentUpon>CampusMapPage.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Pages\Lecture\LectureFeed.cs" />
|
<Compile Include="Feed\Lecture\LectureFeed.cs" />
|
||||||
<Compile Include="Feed\Departments\DepartmentFeed.cs" />
|
<Compile Include="Feed\Departments\DepartmentFeed.cs" />
|
||||||
<Compile Include="Pages\Departments\DepartmentPage.xaml.cs">
|
<Compile Include="Pages\Departments\DepartmentPage.xaml.cs">
|
||||||
<DependentUpon>DepartmentPage.xaml</DependentUpon>
|
<DependentUpon>DepartmentPage.xaml</DependentUpon>
|
||||||
@@ -135,6 +135,7 @@
|
|||||||
<Compile Include="Pages\Lecture\ModulWebPage.xaml.cs">
|
<Compile Include="Pages\Lecture\ModulWebPage.xaml.cs">
|
||||||
<DependentUpon>ModulWebPage.xaml</DependentUpon>
|
<DependentUpon>ModulWebPage.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Model\Utility\ListPickerItemModel.cs" />
|
||||||
<Compile Include="Pages\Lecture\ResultDetailPage.xaml.cs">
|
<Compile Include="Pages\Lecture\ResultDetailPage.xaml.cs">
|
||||||
<DependentUpon>ResultDetailPage.xaml</DependentUpon>
|
<DependentUpon>ResultDetailPage.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace CampusAppWP8.Feed.Departments
|
|||||||
public System.Collections.ObjectModel.ObservableCollection<FacultyModel> _faculties { get; set; }
|
public System.Collections.ObjectModel.ObservableCollection<FacultyModel> _faculties { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Method implement CheckIsModelUpToDate()-Method <see cref="Feed"/>
|
/// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true, if model is up-to-date, otherwise false</returns>
|
/// <returns>true, if model is up-to-date, otherwise false</returns>
|
||||||
protected override bool CheckIsModelUpToDate()
|
protected override bool CheckIsModelUpToDate()
|
||||||
@@ -26,7 +26,7 @@ namespace CampusAppWP8.Feed.Departments
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Method implement CheckIsFileUpToDate()-Method <see cref="Feed"/>
|
/// Method implement CheckIsFileUpToDate()-Method <see cref="Pages"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true, if file is up-to-date, otherwise false</returns>
|
/// <returns>true, if file is up-to-date, otherwise false</returns>
|
||||||
protected override bool CheckIsFileUpToDate()
|
protected override bool CheckIsFileUpToDate()
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace CampusAppWP8.Feed.Events
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Method implement CheckIsModelUpToDate()-Method <see cref="Feed"/>
|
/// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true, if model is up-to-date, otherwise false</returns>
|
/// <returns>true, if model is up-to-date, otherwise false</returns>
|
||||||
protected override bool CheckIsModelUpToDate()
|
protected override bool CheckIsModelUpToDate()
|
||||||
@@ -30,7 +30,7 @@ namespace CampusAppWP8.Feed.Events
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Method implement CheckIsFileUpToDate()-Method <see cref="Feed"/>
|
/// Method implement CheckIsFileUpToDate()-Method <see cref="Pages"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true, if file is up-to-date, otherwise false</returns>
|
/// <returns>true, if file is up-to-date, otherwise false</returns>
|
||||||
protected override bool CheckIsFileUpToDate()
|
protected override bool CheckIsFileUpToDate()
|
||||||
|
|||||||
67
CampusAppWP8/CampusAppWP8/Feed/Lecture/LectureFeed.cs
Normal file
67
CampusAppWP8/CampusAppWP8/Feed/Lecture/LectureFeed.cs
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
//-----------------------------------------------------------------------
|
||||||
|
// <copyright file="LectureFeed.cs" company="BTU/IIT">
|
||||||
|
// Company copyright tag.
|
||||||
|
// </copyright>
|
||||||
|
// <author>stubbfel</author>
|
||||||
|
// <sience>13.06.2013</sience>
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
namespace CampusAppWP8.Feed.Lecture
|
||||||
|
{
|
||||||
|
using System;
|
||||||
|
using CampusAppWP8.Model.Lecture;
|
||||||
|
using CampusAppWP8.Utility;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Class for the feed of the Lecture
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// need the XmlAPI
|
||||||
|
/// </remarks>
|
||||||
|
public class LectureFeed : XmlFeed<LectureList>
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="LectureFeed" /> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="url">the RequestUrl</param>
|
||||||
|
public LectureFeed(Uri url)
|
||||||
|
: base(url, "Lecture.xml")
|
||||||
|
{
|
||||||
|
this.validRootName = "lsf_auszug";
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Method create the RequestUrl
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// have to refactors
|
||||||
|
/// </remarks>
|
||||||
|
/// <param name="semester">value of the semester</param>
|
||||||
|
/// <param name="degree">value of the degree</param>
|
||||||
|
/// <param name="course">value of the course</param>
|
||||||
|
/// <param name="from">value of the from</param>
|
||||||
|
/// <param name="to">value of the to</param>
|
||||||
|
/// <returns>return the requestUrl</returns>
|
||||||
|
public static Uri CreateFeedUrl(string semester, string degree, string course, string from, string to)
|
||||||
|
{
|
||||||
|
return new Uri("http://www.zv.tu-cottbus.de/LSFveranst/LSF4?Semester=" + semester + "&Abschluss=" + degree + "&Studiengang=" + course + "&Von=" + from + "&Bis=" + to);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>true, if model is up-to-date, otherwise false</returns>
|
||||||
|
protected override bool CheckIsModelUpToDate()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Method implement CheckIsFileUpToDate()-Method <see cref="Pages"/>
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>true, if file is up-to-date, otherwise false</returns>
|
||||||
|
protected override bool CheckIsFileUpToDate()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
// <author>stubbfel</author>
|
// <author>stubbfel</author>
|
||||||
// <sience>03.05.2013</sience>
|
// <sience>03.05.2013</sience>
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
namespace CampusAppWP8.Pages.Mensa
|
namespace CampusAppWP8.Feed.Mensa
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
@@ -34,7 +34,7 @@ namespace CampusAppWP8.Pages.Mensa
|
|||||||
#region Protected
|
#region Protected
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Method implement CheckIsModelUpToDate()-Method <see cref="Feed"/>
|
/// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true, if model is up-to-date, otherwise false</returns>
|
/// <returns>true, if model is up-to-date, otherwise false</returns>
|
||||||
protected override bool CheckIsModelUpToDate()
|
protected override bool CheckIsModelUpToDate()
|
||||||
@@ -44,7 +44,7 @@ namespace CampusAppWP8.Pages.Mensa
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Method implement CheckIsFileUpToDate()-Method <see cref="Feed"/>
|
/// Method implement CheckIsFileUpToDate()-Method <see cref="Pages"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true, if file is up-to-date, otherwise false</returns>
|
/// <returns>true, if file is up-to-date, otherwise false</returns>
|
||||||
protected override bool CheckIsFileUpToDate()
|
protected override bool CheckIsFileUpToDate()
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace CampusAppWP8.Feed.News
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Method implement CheckIsModelUpToDate()-Method <see cref="Feed"/>
|
/// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true, if model is up-to-date, otherwise false</returns>
|
/// <returns>true, if model is up-to-date, otherwise false</returns>
|
||||||
protected override bool CheckIsModelUpToDate()
|
protected override bool CheckIsModelUpToDate()
|
||||||
@@ -31,7 +31,7 @@ namespace CampusAppWP8.Feed.News
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Method implement CheckIsFileUpToDate()-Method <see cref="Feed"/>
|
/// Method implement CheckIsFileUpToDate()-Method <see cref="Pages"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true, if file is up-to-date, otherwise false</returns>
|
/// <returns>true, if file is up-to-date, otherwise false</returns>
|
||||||
protected override bool CheckIsFileUpToDate()
|
protected override bool CheckIsFileUpToDate()
|
||||||
|
|||||||
@@ -1,26 +1,48 @@
|
|||||||
using CampusAppWP8.Utility;
|
//-----------------------------------------------------------------------
|
||||||
using System;
|
// <copyright file="LectureActivity.cs" company="BTU/IIT">
|
||||||
using System.Collections.Generic;
|
// Company copyright tag.
|
||||||
using System.Collections.ObjectModel;
|
// </copyright>
|
||||||
using System.Linq;
|
// <author>stubbfel</author>
|
||||||
using System.Text;
|
// <sience>13.06.2013</sience>
|
||||||
using System.Threading.Tasks;
|
//----------------------------------------------------------------------
|
||||||
using System.Xml.Serialization;
|
|
||||||
|
|
||||||
namespace CampusAppWP8.Model.Lecture
|
namespace CampusAppWP8.Model.Lecture
|
||||||
{
|
{
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
using CampusAppWP8.Utility;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Model for a Activity
|
||||||
|
/// </summary>
|
||||||
public class LectureActivity
|
public class LectureActivity
|
||||||
{
|
{
|
||||||
#region
|
#region Members
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// List of lecturer
|
||||||
|
/// </summary>
|
||||||
private ObservableCollection<LectureLecturer> lecturer;
|
private ObservableCollection<LectureLecturer> lecturer;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// a formatted string for the names of the lecturers
|
||||||
|
/// </summary>
|
||||||
private string lecturerString;
|
private string lecturerString;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// a formatted string for the names of the courses
|
||||||
|
/// </summary>
|
||||||
private string courseString;
|
private string courseString;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// a formatted string for the topic of the lecture
|
||||||
|
/// </summary>
|
||||||
private string topic;
|
private string topic;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
#region Constructor
|
#region Constructor
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="LectureList" /> class.
|
/// Initializes a new instance of the <see cref="LectureActivity" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public LectureActivity()
|
public LectureActivity()
|
||||||
{
|
{
|
||||||
@@ -30,41 +52,66 @@ namespace CampusAppWP8.Model.Lecture
|
|||||||
|
|
||||||
#region Proberty
|
#region Proberty
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the type of the activity
|
||||||
|
/// </summary>
|
||||||
[XmlElement("art")]
|
[XmlElement("art")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the id of the activity
|
||||||
|
/// </summary>
|
||||||
[XmlAttribute("id")]
|
[XmlAttribute("id")]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets semester of the activity
|
||||||
|
/// </summary>
|
||||||
[XmlElement("semester")]
|
[XmlElement("semester")]
|
||||||
public int Semester { get; set; }
|
public int Semester { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the contact hour
|
||||||
|
/// </summary>
|
||||||
[XmlElement("sws")]
|
[XmlElement("sws")]
|
||||||
public string SWS { get; set; }
|
public string SWS { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets LectureModule
|
||||||
|
/// </summary>
|
||||||
[XmlElement("modul")]
|
[XmlElement("modul")]
|
||||||
public LectureModul Modul { get; set; }
|
public LectureModule Modul { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the lecturers
|
||||||
|
/// </summary>
|
||||||
[XmlElement("lehrperson")]
|
[XmlElement("lehrperson")]
|
||||||
public ObservableCollection<LectureLecturer> Lecturer {
|
public ObservableCollection<LectureLecturer> Lecturer
|
||||||
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return lecturer;
|
return this.lecturer;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (value != lecturer)
|
if (value != this.lecturer)
|
||||||
{
|
{
|
||||||
lecturer = value;
|
this.lecturer = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public string LecturerString {
|
/// <summary>
|
||||||
|
/// Gets or sets the formatted string of the lecturers
|
||||||
|
/// </summary>
|
||||||
|
public string LecturerString
|
||||||
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return this.lecturerString;
|
return this.lecturerString;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (value != this.lecturerString)
|
if (value != this.lecturerString)
|
||||||
@@ -74,12 +121,16 @@ namespace CampusAppWP8.Model.Lecture
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets formatted string of the courses
|
||||||
|
/// </summary>
|
||||||
public string CourseString
|
public string CourseString
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return this.courseString;
|
return this.courseString;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (value != this.courseString)
|
if (value != this.courseString)
|
||||||
@@ -89,52 +140,76 @@ namespace CampusAppWP8.Model.Lecture
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the courses
|
||||||
|
/// </summary>
|
||||||
[XmlElement("studiengang")]
|
[XmlElement("studiengang")]
|
||||||
public ObservableCollection<LectureCourse> Course { get; set; }
|
public ObservableCollection<LectureCourse> Course { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the dates of the activity
|
||||||
|
/// </summary>
|
||||||
[XmlElement("termin")]
|
[XmlElement("termin")]
|
||||||
public ObservableCollection<LectureDate> Dates { get; set; }
|
public ObservableCollection<LectureDate> Dates { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the Department
|
||||||
|
/// </summary>
|
||||||
[XmlElement("zugeordnete_einrichtung")]
|
[XmlElement("zugeordnete_einrichtung")]
|
||||||
public string Department { get; set; }
|
public string Department { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the topic of the Lecture
|
||||||
|
/// </summary>
|
||||||
[XmlElement("lehrinhalt")]
|
[XmlElement("lehrinhalt")]
|
||||||
public string Topic
|
public string Topic
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return topic;
|
return this.topic;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (value != topic)
|
if (value != this.topic)
|
||||||
{
|
{
|
||||||
topic = StringManager.StripHTML(value);
|
this.topic = StringManager.StripHTML(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public void createLectureString()
|
#region Methods
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Method create a formatted string of the LecturerList
|
||||||
|
/// </summary>
|
||||||
|
public void CreateLectureString()
|
||||||
{
|
{
|
||||||
string result = string.Empty;
|
string result = string.Empty;
|
||||||
foreach (LectureLecturer tmpLecturer in Lecturer)
|
foreach (LectureLecturer tmpLecturer in this.Lecturer)
|
||||||
{
|
{
|
||||||
result += tmpLecturer.ToString() + "\n";
|
result += tmpLecturer.ToString() + "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
this.LecturerString = result.TrimEnd('\n');
|
this.LecturerString = result.TrimEnd('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
public void createCourseString()
|
/// <summary>
|
||||||
|
/// Method create a formatted string of the CourseList
|
||||||
|
/// </summary>
|
||||||
|
public void CreateCourseString()
|
||||||
{
|
{
|
||||||
string result = string.Empty;
|
string result = string.Empty;
|
||||||
foreach (LectureCourse course in Course)
|
foreach (LectureCourse course in this.Course)
|
||||||
{
|
{
|
||||||
result += course.Title + "\n";
|
result += course.Title + "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
this.CourseString = result.TrimEnd('\n');
|
this.CourseString = result.TrimEnd('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,29 @@
|
|||||||
using System;
|
// <copyright file="LectureCourse.cs" company="BTU/IIT">
|
||||||
using System.Collections.Generic;
|
// Company copyright tag.
|
||||||
using System.Linq;
|
// </copyright>
|
||||||
using System.Text;
|
// <author>stubbfel</author>
|
||||||
using System.Xml.Serialization;
|
// <sience>10.06.2013</sience>
|
||||||
|
//----------------------------------------------------------------------
|
||||||
namespace CampusAppWP8.Model.Lecture
|
namespace CampusAppWP8.Model.Lecture
|
||||||
{
|
{
|
||||||
public class LectureCourse
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Model for a course
|
||||||
|
/// </summary>
|
||||||
|
public class LectureCourse
|
||||||
{
|
{
|
||||||
public LectureCourse()
|
/// <summary>
|
||||||
{
|
/// Initializes a new instance of the <see cref="LectureCourse" /> class.
|
||||||
}
|
/// </summary>
|
||||||
[XmlElement("bezeichnung")]
|
public LectureCourse()
|
||||||
public string Title {get;set;}
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the title of the course
|
||||||
|
/// </summary>
|
||||||
|
[XmlElement("bezeichnung")]
|
||||||
|
public string Title { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,29 +1,65 @@
|
|||||||
using System;
|
//-----------------------------------------------------------------------
|
||||||
using System.Collections.Generic;
|
// <copyright file="LectureDate.cs" company="BTU/IIT">
|
||||||
using System.Linq;
|
// Company copyright tag.
|
||||||
using System.Text;
|
// </copyright>
|
||||||
using System.Xml.Serialization;
|
// <author>stubbfel</author>
|
||||||
|
// <sience>10.06.2013</sience>
|
||||||
|
//----------------------------------------------------------------------
|
||||||
namespace CampusAppWP8.Model.Lecture
|
namespace CampusAppWP8.Model.Lecture
|
||||||
{
|
{
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Model for the date of an activity
|
||||||
|
/// </summary>
|
||||||
public class LectureDate
|
public class LectureDate
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="LectureDate" /> class.
|
||||||
|
/// </summary>
|
||||||
public LectureDate()
|
public LectureDate()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets WeekDay
|
||||||
|
/// </summary>
|
||||||
[XmlElement("wochentag")]
|
[XmlElement("wochentag")]
|
||||||
public string WeekDay { get; set; }
|
public string WeekDay { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets From
|
||||||
|
/// </summary>
|
||||||
[XmlElement("von")]
|
[XmlElement("von")]
|
||||||
public string From { get; set; }
|
public string From { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets To
|
||||||
|
/// </summary>
|
||||||
[XmlElement("bis")]
|
[XmlElement("bis")]
|
||||||
public string To { get; set; }
|
public string To { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets Interval
|
||||||
|
/// </summary>
|
||||||
[XmlElement("rhythmus")]
|
[XmlElement("rhythmus")]
|
||||||
public string Interval { get; set; }
|
public string Interval { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets Room
|
||||||
|
/// </summary>
|
||||||
[XmlElement("raum")]
|
[XmlElement("raum")]
|
||||||
public string Room { get; set; }
|
public string Room { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets StartDate
|
||||||
|
/// </summary>
|
||||||
[XmlElement("anfangsdatum")]
|
[XmlElement("anfangsdatum")]
|
||||||
public string StarDate { get; set; }
|
public string StartDate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets EndDate
|
||||||
|
/// </summary>
|
||||||
[XmlElement("enddatum")]
|
[XmlElement("enddatum")]
|
||||||
public string EndDate { get; set; }
|
public string EndDate { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -1,45 +1,71 @@
|
|||||||
using System;
|
//-----------------------------------------------------------------------
|
||||||
using System.Collections.Generic;
|
// <copyright file="LectureLecturer.cs" company="BTU/IIT">
|
||||||
using System.Linq;
|
// Company copyright tag.
|
||||||
using System.Text;
|
// </copyright>
|
||||||
using System.Xml.Serialization;
|
// <author>stubbfel</author>
|
||||||
|
// <sience>10.06.2013</sience>
|
||||||
|
//----------------------------------------------------------------------
|
||||||
namespace CampusAppWP8.Model.Lecture
|
namespace CampusAppWP8.Model.Lecture
|
||||||
{
|
{
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Model for a lecturer
|
||||||
|
/// </summary>
|
||||||
public class LectureLecturer
|
public class LectureLecturer
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="LectureLecturer" /> class.
|
||||||
|
/// </summary>
|
||||||
public LectureLecturer()
|
public LectureLecturer()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the FirstName of a lecturer
|
||||||
|
/// </summary>
|
||||||
[XmlElement("vorname")]
|
[XmlElement("vorname")]
|
||||||
public string FirstName { get; set; }
|
public string FirstName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the LastName of a lecturer
|
||||||
|
/// </summary>
|
||||||
[XmlElement("name")]
|
[XmlElement("name")]
|
||||||
public string LastName { get; set; }
|
public string LastName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the title of a lecturer
|
||||||
|
/// </summary>
|
||||||
[XmlElement("titel")]
|
[XmlElement("titel")]
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the Responsibility of a lecturer
|
||||||
|
/// </summary>
|
||||||
[XmlAttribute("zustaendigkeit")]
|
[XmlAttribute("zustaendigkeit")]
|
||||||
public string Responsibility { get; set; }
|
public string Responsibility { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Method overrides the base ToString() and create an formatted string of the lecturer
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>returns a string like: [Title] FirstName LastName [(Responsibility)]</returns>
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
string result = string.Empty;
|
string result = string.Empty;
|
||||||
|
|
||||||
if (!Title.Equals(string.Empty))
|
if (!this.Title.Equals(string.Empty))
|
||||||
{
|
{
|
||||||
result += Title + " ";
|
result += this.Title + " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
result += FirstName + " ";
|
result += this.FirstName + " ";
|
||||||
result += LastName + " ";
|
result += this.LastName + " ";
|
||||||
|
|
||||||
if (!Responsibility.Equals(string.Empty))
|
if (!this.Responsibility.Equals(string.Empty))
|
||||||
{
|
{
|
||||||
result += "(" + Responsibility + ") ";
|
result += "(" + this.Responsibility + ") ";
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,15 +7,16 @@
|
|||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
namespace CampusAppWP8.Model.Lecture
|
namespace CampusAppWP8.Model.Lecture
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.Xml.Serialization;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Model for a List of LectureActivity
|
||||||
|
/// </summary>
|
||||||
[XmlRoot("lsf_auszug")]
|
[XmlRoot("lsf_auszug")]
|
||||||
public class LectureList
|
public class LectureList
|
||||||
{
|
{
|
||||||
|
|
||||||
#region Constructor
|
#region Constructor
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -29,6 +30,9 @@ namespace CampusAppWP8.Model.Lecture
|
|||||||
|
|
||||||
#region Proberty
|
#region Proberty
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets List of the activities
|
||||||
|
/// </summary>
|
||||||
[XmlArray("veranstaltungsliste")]
|
[XmlArray("veranstaltungsliste")]
|
||||||
[XmlArrayItem("veranstaltung")]
|
[XmlArrayItem("veranstaltung")]
|
||||||
public ObservableCollection<LectureActivity> Activities { get; set; }
|
public ObservableCollection<LectureActivity> Activities { get; set; }
|
||||||
@@ -37,12 +41,17 @@ namespace CampusAppWP8.Model.Lecture
|
|||||||
|
|
||||||
#region Methods
|
#region Methods
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Method return a certain activity
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="id"> id of the activity</param>
|
||||||
|
/// <returns> the activity (FirstOrDefault)</returns>
|
||||||
public LectureActivity GetActivity(int id)
|
public LectureActivity GetActivity(int id)
|
||||||
{
|
{
|
||||||
LectureActivity activity = Activities.Where(p => p.Id == id).First();
|
LectureActivity activity = this.Activities.Where(p => p.Id == id).FirstOrDefault();
|
||||||
return activity;
|
return activity;
|
||||||
}
|
}
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,70 +0,0 @@
|
|||||||
//-----------------------------------------------------------------------
|
|
||||||
// <copyright file="LectureModul.cs" company="BTU/IIT">
|
|
||||||
// Company copyright tag.
|
|
||||||
// </copyright>
|
|
||||||
// <author>stubbfel</author>
|
|
||||||
// <sience>10.06.2013</sience>
|
|
||||||
//----------------------------------------------------------------------
|
|
||||||
namespace CampusAppWP8.Model.Lecture
|
|
||||||
{
|
|
||||||
using CampusAppWP8.Resources;
|
|
||||||
using System;
|
|
||||||
using System.Xml.Serialization;
|
|
||||||
public class LectureModul
|
|
||||||
{
|
|
||||||
#region Members
|
|
||||||
|
|
||||||
private int number;
|
|
||||||
|
|
||||||
private Uri url;
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Constructor
|
|
||||||
|
|
||||||
public LectureModul()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Property
|
|
||||||
|
|
||||||
[XmlElement("titel")]
|
|
||||||
public string Title {get; set;}
|
|
||||||
|
|
||||||
[XmlElement("nummer")]
|
|
||||||
public int Number{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this.number;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (value != this.number)
|
|
||||||
{
|
|
||||||
this.number = value;
|
|
||||||
this.createUrl();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Uri Url{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return url;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Methods
|
|
||||||
|
|
||||||
private void createUrl()
|
|
||||||
{
|
|
||||||
this.url = new Uri(Constants.UrlLectureModulBaseAddr + number.ToString());
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
98
CampusAppWP8/CampusAppWP8/Model/Lecture/LectureModule.cs
Normal file
98
CampusAppWP8/CampusAppWP8/Model/Lecture/LectureModule.cs
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
//-----------------------------------------------------------------------
|
||||||
|
// <copyright file="LectureModule.cs" company="BTU/IIT">
|
||||||
|
// Company copyright tag.
|
||||||
|
// </copyright>
|
||||||
|
// <author>stubbfel</author>
|
||||||
|
// <sience>10.06.2013</sience>
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
namespace CampusAppWP8.Model.Lecture
|
||||||
|
{
|
||||||
|
using System;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
using CampusAppWP8.Resources;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Model for the module of an lecture
|
||||||
|
/// </summary>
|
||||||
|
public class LectureModule
|
||||||
|
{
|
||||||
|
#region Members
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Number of the module (like an id)
|
||||||
|
/// </summary>
|
||||||
|
private int number;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Url to the website of the module
|
||||||
|
/// </summary>
|
||||||
|
private Uri url;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Constructor
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="LectureModule" /> class.
|
||||||
|
/// </summary>
|
||||||
|
public LectureModule()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Property
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the title of the module
|
||||||
|
/// </summary>
|
||||||
|
[XmlElement("titel")]
|
||||||
|
public string Title { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the number of the module and create the URL
|
||||||
|
/// </summary>
|
||||||
|
[XmlElement("nummer")]
|
||||||
|
public int Number
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.number;
|
||||||
|
}
|
||||||
|
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (value != this.number)
|
||||||
|
{
|
||||||
|
this.number = value;
|
||||||
|
this.CreateUrl();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the URL of the module
|
||||||
|
/// </summary>
|
||||||
|
public Uri Url
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.url;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Methods
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Method create the url of the module
|
||||||
|
/// </summary>
|
||||||
|
private void CreateUrl()
|
||||||
|
{
|
||||||
|
this.url = new Uri(Constants.UrlLectureModulBaseAddr + this.number.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
//-----------------------------------------------------------------------
|
||||||
|
// <copyright file="ListPickerItemModel.cs" company="BTU/IIT">
|
||||||
|
// Company copyright tag.
|
||||||
|
// </copyright>
|
||||||
|
// <author>stubbfel</author>
|
||||||
|
// <sience>13.06.2013</sience>
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
namespace CampusAppWP8.Model.Utility
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Model for the ListPickerItems
|
||||||
|
/// </summary>
|
||||||
|
public class ListPickerItemModel
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the Value of an Item
|
||||||
|
/// </summary>
|
||||||
|
public string Value { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the Text (caption) of an Item
|
||||||
|
/// </summary>
|
||||||
|
public string Text { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
using CampusAppWP8.Feed.Departments;
|
using CampusAppWP8.Feed.Departments;
|
||||||
using CampusAppWP8.Pages.Departments;
|
|
||||||
using CampusAppWP8.Utility;
|
using CampusAppWP8.Utility;
|
||||||
using Microsoft.Phone.Controls;
|
using Microsoft.Phone.Controls;
|
||||||
using Microsoft.Phone.Tasks;
|
using Microsoft.Phone.Tasks;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using CampusAppWP8.Feed.Events;
|
using CampusAppWP8.Pages.Events;
|
||||||
using CampusAppWP8.Model.events_news;
|
using CampusAppWP8.Model.events_news;
|
||||||
using CampusAppWP8.Utility;
|
using CampusAppWP8.Utility;
|
||||||
using Microsoft.Phone.Controls;
|
using Microsoft.Phone.Controls;
|
||||||
@@ -9,6 +9,7 @@ using System.Linq;
|
|||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Navigation;
|
using System.Windows.Navigation;
|
||||||
|
using CampusAppWP8.Feed.Events;
|
||||||
|
|
||||||
namespace CampusAppWP8.Pages.Events
|
namespace CampusAppWP8.Pages.Events
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
using CampusAppWP8.Model.Lecture;
|
|
||||||
using CampusAppWP8.Utility;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace CampusAppWP8.Pages.Lecture
|
|
||||||
{
|
|
||||||
public class LectureFeed : XmlFeed<LectureList>
|
|
||||||
{
|
|
||||||
public LectureFeed()
|
|
||||||
: base(new Uri("http://www.zv.tu-cottbus.de/LSFveranst/LSF4?Semester=20112&Abschluss=82&Studiengang=079&Von=1&Bis=2"), "Lecture.xml")
|
|
||||||
{
|
|
||||||
this.validRootName = "lsf_auszug";
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Method implement CheckIsModelUpToDate()-Method <see cref="Feed"/>
|
|
||||||
/// </summary>
|
|
||||||
/// <returns>true, if model is up-to-date, otherwise false</returns>
|
|
||||||
protected override bool CheckIsModelUpToDate()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Method implement CheckIsFileUpToDate()-Method <see cref="Feed"/>
|
|
||||||
/// </summary>
|
|
||||||
/// <returns>true, if file is up-to-date, otherwise false</returns>
|
|
||||||
protected override bool CheckIsFileUpToDate()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<phone:PhoneApplicationPage
|
<phone:PhoneApplicationPage
|
||||||
x:Class="CampusAppWP8.Pages.lecture.Lecture"
|
x:Class="CampusAppWP8.Pages.Lecture.LecturePage"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
|
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
|
||||||
@@ -10,8 +10,7 @@
|
|||||||
FontFamily="{StaticResource PhoneFontFamilyNormal}"
|
FontFamily="{StaticResource PhoneFontFamilyNormal}"
|
||||||
FontSize="{StaticResource PhoneFontSizeNormal}"
|
FontSize="{StaticResource PhoneFontSizeNormal}"
|
||||||
Foreground="{StaticResource PhoneForegroundBrush}"
|
Foreground="{StaticResource PhoneForegroundBrush}"
|
||||||
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
|
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
|
||||||
OrientationChanged="PhoneApplicationPage_OrientationChanged"
|
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
shell:SystemTray.IsVisible="True">
|
shell:SystemTray.IsVisible="True">
|
||||||
|
|
||||||
@@ -28,6 +27,7 @@
|
|||||||
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,0,0,2" >
|
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,0,0,2" >
|
||||||
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Title, Source={StaticResource LocalizedStrings}}"/>
|
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Title, Source={StaticResource LocalizedStrings}}"/>
|
||||||
</Border>
|
</Border>
|
||||||
|
<ProgressBar Name="ProgressBar" Visibility="Collapsed" IsIndeterminate="True"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
|
|
||||||
@@ -48,64 +48,122 @@
|
|||||||
|
|
||||||
<StackPanel Grid.Row="0" >
|
<StackPanel Grid.Row="0" >
|
||||||
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_LectureName, Source={StaticResource LocalizedStrings}}"/>
|
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_LectureName, Source={StaticResource LocalizedStrings}}"/>
|
||||||
<TextBox />
|
<TextBox Name="ActivtyName"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="1">
|
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="1">
|
||||||
<StackPanel >
|
<StackPanel >
|
||||||
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Course, Source={StaticResource LocalizedStrings}}"/>
|
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Course, Source={StaticResource LocalizedStrings}}"/>
|
||||||
<toolkit:ListPicker>
|
<!-- Listpicket of courses -->
|
||||||
<toolkit:ListPickerItem Content="aaa" />
|
<toolkit:ListPicker Name="Course" ExpansionMode="FullScreenOnly" FullModeHeader="{Binding Path=LocalizedResources.LectureApp_ListPickerHeaderCourse, Source={StaticResource LocalizedStrings}}" >
|
||||||
<toolkit:ListPickerItem Content="bbb" />
|
<toolkit:ListPicker.ItemTemplate>
|
||||||
<toolkit:ListPickerItem Content="ccc" />
|
<DataTemplate>
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Text="{Binding Text}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</toolkit:ListPicker.ItemTemplate>
|
||||||
|
<toolkit:ListPicker.FullModeItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Text="{Binding Text}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</toolkit:ListPicker.FullModeItemTemplate>
|
||||||
</toolkit:ListPicker>
|
</toolkit:ListPicker>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="2">
|
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="2">
|
||||||
<StackPanel >
|
<StackPanel >
|
||||||
|
<!-- Listpicket of degree-->
|
||||||
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Degree, Source={StaticResource LocalizedStrings}}"/>
|
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Degree, Source={StaticResource LocalizedStrings}}"/>
|
||||||
<toolkit:ListPicker>
|
<toolkit:ListPicker Name="Degree">
|
||||||
<toolkit:ListPickerItem Content="Bachelor" />
|
<toolkit:ListPicker.ItemTemplate>
|
||||||
<toolkit:ListPickerItem Content="Master" />
|
<DataTemplate>
|
||||||
<toolkit:ListPickerItem Content="Diplom" />
|
<StackPanel>
|
||||||
|
<TextBlock Text="{Binding Text}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</toolkit:ListPicker.ItemTemplate>
|
||||||
|
<toolkit:ListPicker.FullModeItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Text="{Binding Text}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</toolkit:ListPicker.FullModeItemTemplate>
|
||||||
</toolkit:ListPicker>
|
</toolkit:ListPicker>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="3">
|
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="3">
|
||||||
<StackPanel >
|
<StackPanel >
|
||||||
|
<!-- Listpicket of semesters(from to) -->
|
||||||
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Term, Source={StaticResource LocalizedStrings}}"/>
|
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Term, Source={StaticResource LocalizedStrings}}"/>
|
||||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||||||
<toolkit:ListPicker Width="60">
|
<toolkit:ListPicker Width="60" Name="From" >
|
||||||
<toolkit:ListPickerItem Content="1" />
|
<toolkit:ListPicker.ItemTemplate>
|
||||||
<toolkit:ListPickerItem Content="2" />
|
<DataTemplate>
|
||||||
<toolkit:ListPickerItem Content="3" />
|
<StackPanel>
|
||||||
|
<TextBlock Text="{Binding Text}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</toolkit:ListPicker.ItemTemplate>
|
||||||
|
<toolkit:ListPicker.FullModeItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Text="{Binding Text}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</toolkit:ListPicker.FullModeItemTemplate>
|
||||||
</toolkit:ListPicker>
|
</toolkit:ListPicker>
|
||||||
<TextBlock Text="bis" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
<TextBlock Text="bis" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||||
<toolkit:ListPicker Width="60">
|
<toolkit:ListPicker Width="60" Name="To">
|
||||||
<toolkit:ListPickerItem Content="1" />
|
<toolkit:ListPicker.ItemTemplate>
|
||||||
<toolkit:ListPickerItem Content="2" />
|
<DataTemplate>
|
||||||
<toolkit:ListPickerItem Content="3" />
|
<StackPanel>
|
||||||
|
<TextBlock Text="{Binding Text}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</toolkit:ListPicker.ItemTemplate>
|
||||||
|
<toolkit:ListPicker.FullModeItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Text="{Binding Text}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</toolkit:ListPicker.FullModeItemTemplate>
|
||||||
</toolkit:ListPicker>
|
</toolkit:ListPicker>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="4">
|
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="4">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
|
<!-- Listpicket of semster -->
|
||||||
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Semester, Source={StaticResource LocalizedStrings}}"/>
|
<TextBlock Text="{Binding Path=LocalizedResources.LectureApp_Semester, Source={StaticResource LocalizedStrings}}"/>
|
||||||
<toolkit:ListPicker>
|
<toolkit:ListPicker Name="Semester">
|
||||||
<toolkit:ListPickerItem Content="SoSe 13" />
|
<toolkit:ListPicker.ItemTemplate>
|
||||||
<toolkit:ListPickerItem Content="WiSe 13/14" />
|
<DataTemplate>
|
||||||
<toolkit:ListPickerItem Content="SoSe 14" />
|
<StackPanel>
|
||||||
|
<TextBlock Text="{Binding Text}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</toolkit:ListPicker.ItemTemplate>
|
||||||
|
<toolkit:ListPicker.FullModeItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Text="{Binding Text}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
|
</toolkit:ListPicker.FullModeItemTemplate>
|
||||||
</toolkit:ListPicker>
|
</toolkit:ListPicker>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="5">
|
<Border BorderBrush="{StaticResource PhoneBorderBrush}" BorderThickness="0,2,0,0" Grid.Row="5">
|
||||||
<Button Name="SearchButton">
|
<Button Name="SearchButton" Click="SendRequest">
|
||||||
<Image Source="/Toolkit.Content/ApplicationBar.Select.png" Width="100">
|
<Image Source="/Toolkit.Content/ApplicationBar.Select.png" Width="100">
|
||||||
</Image>
|
</Image>
|
||||||
</Button>
|
</Button>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -1,28 +1,168 @@
|
|||||||
using System;
|
//-----------------------------------------------------------------------
|
||||||
using System.Collections.Generic;
|
// <copyright file="LecturePage.xaml.cs" company="BTU/IIT">
|
||||||
using System.Linq;
|
// Company copyright tag.
|
||||||
using System.Net;
|
// </copyright>
|
||||||
using System.Windows;
|
// <author>stubbfel</author>
|
||||||
using System.Windows.Controls;
|
// <sience>13.06.2013</sience>
|
||||||
using System.Windows.Navigation;
|
//----------------------------------------------------------------------
|
||||||
using Microsoft.Phone.Controls;
|
namespace CampusAppWP8.Pages.Lecture
|
||||||
using Microsoft.Phone.Shell;
|
|
||||||
using CampusAppWP8.Pages.Lecture;
|
|
||||||
using CampusAppWP8.Utility;
|
|
||||||
|
|
||||||
namespace CampusAppWP8.Pages.lecture
|
|
||||||
{
|
{
|
||||||
public partial class Lecture : PhoneApplicationPage
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Navigation;
|
||||||
|
using CampusAppWP8.Feed.Lecture;
|
||||||
|
using CampusAppWP8.Model.Lecture;
|
||||||
|
using CampusAppWP8.Model.Utility;
|
||||||
|
using CampusAppWP8.Resources;
|
||||||
|
using CampusAppWP8.Utility;
|
||||||
|
using Microsoft.Phone.Controls;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Class for the LecturePage
|
||||||
|
/// </summary>
|
||||||
|
public partial class LecturePage : PhoneApplicationPage
|
||||||
{
|
{
|
||||||
public Lecture()
|
/// <summary>
|
||||||
|
/// actual LectureFeed
|
||||||
|
/// </summary>
|
||||||
|
private LectureFeed feed;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// List for the courses of the BTU
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// need to be extend to full list
|
||||||
|
/// </remarks>
|
||||||
|
private List<ListPickerItemModel> courseList = new List<ListPickerItemModel>()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
new ListPickerItemModel()
|
||||||
LectureFeed test = new LectureFeed();
|
{
|
||||||
test.LoadFeed();
|
Text = "Architektur", Value = "013"
|
||||||
|
},
|
||||||
|
new ListPickerItemModel()
|
||||||
|
{
|
||||||
|
Text = "Bauingenieurwesen", Value = "017"
|
||||||
|
},
|
||||||
|
new ListPickerItemModel()
|
||||||
|
{
|
||||||
|
Text = "Betriebswirtschaftslehre", Value = "021"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// List of the degrees
|
||||||
|
/// </summary>
|
||||||
|
private List<ListPickerItemModel> degreeList = new List<ListPickerItemModel>()
|
||||||
|
{
|
||||||
|
new ListPickerItemModel()
|
||||||
|
{
|
||||||
|
Text = AppResources.Degree_Bachelor, Value = "82"
|
||||||
|
},
|
||||||
|
new ListPickerItemModel()
|
||||||
|
{
|
||||||
|
Text = AppResources.Degree_Master, Value = "88"
|
||||||
|
},
|
||||||
|
new ListPickerItemModel()
|
||||||
|
{
|
||||||
|
Text = AppResources.Degree_Diploma, Value = "11"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// List of the semester
|
||||||
|
/// </summary>
|
||||||
|
private List<ListPickerItemModel> semesterList = new List<ListPickerItemModel>()
|
||||||
|
{
|
||||||
|
new ListPickerItemModel()
|
||||||
|
{
|
||||||
|
Text = "SoSe 13", Value = "20131"
|
||||||
|
},
|
||||||
|
new ListPickerItemModel()
|
||||||
|
{
|
||||||
|
Text = "WiSe 13/14", Value = "20132"
|
||||||
|
},
|
||||||
|
new ListPickerItemModel()
|
||||||
|
{
|
||||||
|
Text = "SoSe 14", Value = "20141"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// List for the number of semester
|
||||||
|
/// </summary>
|
||||||
|
private List<ListPickerItemModel> numberList = new List<ListPickerItemModel>()
|
||||||
|
{
|
||||||
|
new ListPickerItemModel()
|
||||||
|
{
|
||||||
|
Text = "1", Value = "1"
|
||||||
|
},
|
||||||
|
new ListPickerItemModel()
|
||||||
|
{
|
||||||
|
Text = "2", Value = "2"
|
||||||
|
},
|
||||||
|
new ListPickerItemModel()
|
||||||
|
{
|
||||||
|
Text = "3", Value = "3"
|
||||||
|
},
|
||||||
|
new ListPickerItemModel()
|
||||||
|
{
|
||||||
|
Text = "4", Value = "4"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="LecturePage" /> class.
|
||||||
|
/// </summary>
|
||||||
|
public LecturePage()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
this.SetupListPickers();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PhoneApplicationPage_OrientationChanged(object sender, OrientationChangedEventArgs e)
|
/// <summary>
|
||||||
|
/// Method sets the ItemSource of the ListPickers
|
||||||
|
/// </summary>
|
||||||
|
private void SetupListPickers()
|
||||||
{
|
{
|
||||||
|
this.Course.ItemsSource = this.courseList;
|
||||||
|
this.Degree.ItemsSource = this.degreeList;
|
||||||
|
this.From.ItemsSource = this.numberList;
|
||||||
|
this.To.ItemsSource = this.numberList;
|
||||||
|
this.Semester.ItemsSource = this.semesterList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Method send a request to the Feed
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// have to refactors
|
||||||
|
/// </remarks>
|
||||||
|
/// <param name="sender">sender of this event</param>
|
||||||
|
/// <param name="e"> events arguments</param>
|
||||||
|
private void SendRequest(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
ListPickerItemModel semester = (ListPickerItemModel)this.Semester.SelectedItem;
|
||||||
|
ListPickerItemModel degree = (ListPickerItemModel)this.Degree.SelectedItem;
|
||||||
|
ListPickerItemModel course = (ListPickerItemModel)this.Course.SelectedItem;
|
||||||
|
ListPickerItemModel from = (ListPickerItemModel)this.From.SelectedItem;
|
||||||
|
ListPickerItemModel to = (ListPickerItemModel)this.To.SelectedItem;
|
||||||
|
Uri request = LectureFeed.CreateFeedUrl(semester.Value, degree.Value, course.Value, from.Value, to.Value);
|
||||||
|
this.feed = new LectureFeed(request);
|
||||||
|
this.feed.EventHandler.FeedIsReadyEvent += new FeedEventHandler.FeedReadyHandler(this.FeedIsReady);
|
||||||
|
this.ProgressBar.Visibility = System.Windows.Visibility.Visible;
|
||||||
|
this.feed.LoadFeed();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Method will be execute if the feed is ready
|
||||||
|
/// </summary>
|
||||||
|
private void FeedIsReady()
|
||||||
|
{
|
||||||
|
App.SaveToIsolatedStorage<LectureList>(Constants.IsolatedStorageLectureModel, this.feed.Model);
|
||||||
|
this.ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
|
||||||
|
Uri url = new Uri(Constants.PathResultPage, UriKind.Relative);
|
||||||
|
NavigationService.Navigate(url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -50,8 +50,8 @@ namespace CampusAppWP8.Pages.Lecture
|
|||||||
if (list != null)
|
if (list != null)
|
||||||
{
|
{
|
||||||
LectureActivity activity = list.GetActivity(activityId);
|
LectureActivity activity = list.GetActivity(activityId);
|
||||||
activity.createLectureString();
|
activity.CreateLectureString();
|
||||||
activity.createCourseString();
|
activity.CreateCourseString();
|
||||||
this.ContentPanel.DataContext = activity;
|
this.ContentPanel.DataContext = activity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ namespace CampusAppWP8.Pages.Lecture
|
|||||||
using System.Windows.Navigation;
|
using System.Windows.Navigation;
|
||||||
using CampusAppWP8.Model.Lecture;
|
using CampusAppWP8.Model.Lecture;
|
||||||
using CampusAppWP8.Resources;
|
using CampusAppWP8.Resources;
|
||||||
using CampusAppWP8.Utility;
|
|
||||||
using Microsoft.Phone.Controls;
|
using Microsoft.Phone.Controls;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -21,11 +20,6 @@ namespace CampusAppWP8.Pages.Lecture
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class ResultPage : PhoneApplicationPage
|
public partial class ResultPage : PhoneApplicationPage
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// actual LectureFeed
|
|
||||||
/// </summary>
|
|
||||||
private LectureFeed feed;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reference of the button which was lastClicked
|
/// Reference of the button which was lastClicked
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -37,18 +31,17 @@ namespace CampusAppWP8.Pages.Lecture
|
|||||||
public ResultPage()
|
public ResultPage()
|
||||||
{
|
{
|
||||||
this.InitializeComponent();
|
this.InitializeComponent();
|
||||||
this.feed = new LectureFeed();
|
|
||||||
this.feed.EventHandler.FeedIsReadyEvent += new FeedEventHandler.FeedReadyHandler(this.FeedIsReady);
|
|
||||||
this.feed.LoadFeed();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Method will be execute if the feed is ready
|
/// Override the OnNavigatedTo method
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void FeedIsReady()
|
/// <param name="e">Arguments of navigation</param>
|
||||||
|
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||||
{
|
{
|
||||||
this.ResultList.ItemsSource = this.feed.Model.Activities;
|
LectureList list = App.LoadFromIsolatedStorage<LectureList>(Constants.IsolatedStorageLectureModel);
|
||||||
App.SaveToIsolatedStorage<LectureList>(Constants.IsolatedStorageLectureModel, this.feed.Model);
|
this.ResultList.ItemsSource = list.Activities;
|
||||||
|
base.OnNavigatedTo(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -91,8 +84,8 @@ namespace CampusAppWP8.Pages.Lecture
|
|||||||
/// <param name="parent">Reference of the StackPanel which include the buttons </param>
|
/// <param name="parent">Reference of the StackPanel which include the buttons </param>
|
||||||
private void HideOptions(StackPanel parent)
|
private void HideOptions(StackPanel parent)
|
||||||
{
|
{
|
||||||
Button link = (Button)parent.FindName("Link");
|
UIElement link = (UIElement)parent.FindName("Link");
|
||||||
Button details = (Button)parent.FindName("Details");
|
UIElement details = (UIElement)parent.FindName("Details");
|
||||||
this.HideVisibility(link);
|
this.HideVisibility(link);
|
||||||
this.HideVisibility(details);
|
this.HideVisibility(details);
|
||||||
}
|
}
|
||||||
@@ -139,7 +132,7 @@ namespace CampusAppWP8.Pages.Lecture
|
|||||||
private void ShowModulWebPage(object sender, RoutedEventArgs e)
|
private void ShowModulWebPage(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
Button btn = (Button)sender;
|
Button btn = (Button)sender;
|
||||||
Uri url = new Uri(Constants.PathLectureModulWebPage + Constants.Paramseparator + Constants.ParamLectureModulNumber + "=" + btn.Tag, UriKind.Relative);
|
Uri url = new Uri(Constants.PathLectureModulWebPage + "?" + Constants.ParamLectureModulNumber + "=" + btn.Tag, UriKind.Relative);
|
||||||
NavigationService.Navigate(url);
|
NavigationService.Navigate(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -151,7 +144,7 @@ namespace CampusAppWP8.Pages.Lecture
|
|||||||
private void ShowDetailPage(object sender, RoutedEventArgs e)
|
private void ShowDetailPage(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
Button btn = (Button)sender;
|
Button btn = (Button)sender;
|
||||||
Uri url = new Uri(Constants.PathResultDetailWebPage + Constants.Paramseparator + Constants.ParamLectureActivityId + "=" + btn.Tag, UriKind.Relative);
|
Uri url = new Uri(Constants.PathResultDetailPage + "?" + Constants.ParamLectureActivityId + "=" + btn.Tag, UriKind.Relative);
|
||||||
NavigationService.Navigate(url);
|
NavigationService.Navigate(url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ using CampusAppWP8.Model.events_news;
|
|||||||
using CampusAppWP8.Utility;
|
using CampusAppWP8.Utility;
|
||||||
using CampusAppWP8.Resources;
|
using CampusAppWP8.Resources;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
|
using CampusAppWP8.Pages.News;
|
||||||
using CampusAppWP8.Feed.News;
|
using CampusAppWP8.Feed.News;
|
||||||
|
|
||||||
namespace CampusAppWP8.Pages.News
|
namespace CampusAppWP8.Pages.News
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<phone:PhoneApplicationPage
|
<phone:PhoneApplicationPage
|
||||||
x:Class="CampusAppWP8.Pages.Webmail.Webmail"
|
x:Class="CampusAppWP8.Pages.Webmail.WebmailPage"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
|
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
|
||||||
|
|||||||
@@ -1,20 +1,36 @@
|
|||||||
using Microsoft.Phone.Controls;
|
//-----------------------------------------------------------------------
|
||||||
using System;
|
// <copyright file="WebmailPage.xaml.cs" company="BTU/IIT">
|
||||||
|
// Company copyright tag.
|
||||||
|
// </copyright>
|
||||||
|
// <author>stubbfel</author>
|
||||||
|
// <sience>12.06.2013</sience>
|
||||||
|
//----------------------------------------------------------------------
|
||||||
namespace CampusAppWP8.Pages.Webmail
|
namespace CampusAppWP8.Pages.Webmail
|
||||||
{
|
{
|
||||||
public partial class Webmail : PhoneApplicationPage
|
using System;
|
||||||
|
using CampusAppWP8.Resources;
|
||||||
|
using Microsoft.Phone.Controls;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Class for the WebmailPage
|
||||||
|
/// </summary>
|
||||||
|
public partial class WebmailPage : PhoneApplicationPage
|
||||||
{
|
{
|
||||||
public Webmail()
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="WebmailPage" /> class.
|
||||||
|
/// </summary>
|
||||||
|
public WebmailPage()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
this.InitializeComponent();
|
||||||
loadWebmailPage();
|
this.LoadWebmailPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadWebmailPage()
|
/// <summary>
|
||||||
|
/// Method load WebmailPage
|
||||||
|
/// </summary>
|
||||||
|
private void LoadWebmailPage()
|
||||||
{
|
{
|
||||||
this.WebmailBrowser.Navigate(new Uri("https://webmail.tu-cottbus.de", UriKind.Absolute));
|
this.WebmailBrowser.Navigate(new Uri(Constants.UrlWebMailAddr, UriKind.Absolute));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
<Capability Name="ID_CAP_ISV_CAMERA" />
|
<Capability Name="ID_CAP_ISV_CAMERA" />
|
||||||
</Capabilities>
|
</Capabilities>
|
||||||
<Tasks>
|
<Tasks>
|
||||||
<DefaultTask Name="_default" NavigationPage="pages/StartPage.xaml" />
|
<DefaultTask Name="_default" NavigationPage="pages/Lecture/LecturePage.xaml" />
|
||||||
</Tasks>
|
</Tasks>
|
||||||
<Tokens>
|
<Tokens>
|
||||||
<PrimaryToken TokenID="CampusAppWP8Token" TaskName="_default">
|
<PrimaryToken TokenID="CampusAppWP8Token" TaskName="_default">
|
||||||
|
|||||||
@@ -96,6 +96,33 @@ namespace CampusAppWP8.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Sucht eine lokalisierte Zeichenfolge, die Bachelor ähnelt.
|
||||||
|
/// </summary>
|
||||||
|
public static string Degree_Bachelor {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Degree_Bachelor", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Sucht eine lokalisierte Zeichenfolge, die Diplom ähnelt.
|
||||||
|
/// </summary>
|
||||||
|
public static string Degree_Diploma {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Degree_Diploma", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Sucht eine lokalisierte Zeichenfolge, die Master ähnelt.
|
||||||
|
/// </summary>
|
||||||
|
public static string Degree_Master {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Degree_Master", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sucht eine lokalisierte Zeichenfolge, die Lehrstühle ähnelt.
|
/// Sucht eine lokalisierte Zeichenfolge, die Lehrstühle ähnelt.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -195,6 +222,15 @@ namespace CampusAppWP8.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Sucht eine lokalisierte Zeichenfolge, die Studiengangauswahl ähnelt.
|
||||||
|
/// </summary>
|
||||||
|
public static string LectureApp_ListPickerHeaderCourse {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("LectureApp_ListPickerHeaderCourse", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sucht eine lokalisierte Zeichenfolge, die Verantwortlicher ähnelt.
|
/// Sucht eine lokalisierte Zeichenfolge, die Verantwortlicher ähnelt.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -230,7 +230,6 @@
|
|||||||
<data name="NewsHomeBtn" xml:space="preserve">
|
<data name="NewsHomeBtn" xml:space="preserve">
|
||||||
<value>zur Übersicht</value>
|
<value>zur Übersicht</value>
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
<data name="MensaApp_DinnerLabelW" xml:space="preserve">
|
<data name="MensaApp_DinnerLabelW" xml:space="preserve">
|
||||||
<value>84</value>
|
<value>84</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -251,7 +250,7 @@
|
|||||||
</data>
|
</data>
|
||||||
<data name="LectureApp_Type" xml:space="preserve">
|
<data name="LectureApp_Type" xml:space="preserve">
|
||||||
<value>Veranstaltungsart</value>
|
<value>Veranstaltungsart</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Faculty" xml:space="preserve">
|
<data name="Faculty" xml:space="preserve">
|
||||||
<value>Fakultät</value>
|
<value>Fakultät</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -261,4 +260,16 @@
|
|||||||
<data name="NewsLinkBtn" xml:space="preserve">
|
<data name="NewsLinkBtn" xml:space="preserve">
|
||||||
<value>Link</value>
|
<value>Link</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Degree_Bachelor" xml:space="preserve">
|
||||||
|
<value>Bachelor</value>
|
||||||
|
</data>
|
||||||
|
<data name="Degree_Diploma" xml:space="preserve">
|
||||||
|
<value>Diplom</value>
|
||||||
|
</data>
|
||||||
|
<data name="Degree_Master" xml:space="preserve">
|
||||||
|
<value>Master</value>
|
||||||
|
</data>
|
||||||
|
<data name="LectureApp_ListPickerHeaderCourse" xml:space="preserve">
|
||||||
|
<value>Studiengangauswahl</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -87,15 +87,6 @@ namespace CampusAppWP8.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Sucht eine lokalisierte Zeichenfolge, die ? ähnelt.
|
|
||||||
/// </summary>
|
|
||||||
internal static string Paramseparator {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("Paramseparator", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sucht eine lokalisierte Zeichenfolge, die Url ähnelt.
|
/// Sucht eine lokalisierte Zeichenfolge, die Url ähnelt.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -117,9 +108,18 @@ namespace CampusAppWP8.Resources {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sucht eine lokalisierte Zeichenfolge, die /Pages/Lecture/ResultDetailPage.xaml ähnelt.
|
/// Sucht eine lokalisierte Zeichenfolge, die /Pages/Lecture/ResultDetailPage.xaml ähnelt.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string PathResultDetailWebPage {
|
internal static string PathResultDetailPage {
|
||||||
get {
|
get {
|
||||||
return ResourceManager.GetString("PathResultDetailWebPage", resourceCulture);
|
return ResourceManager.GetString("PathResultDetailPage", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Sucht eine lokalisierte Zeichenfolge, die /Pages/Lecture/ResultPage.xaml ähnelt.
|
||||||
|
/// </summary>
|
||||||
|
internal static string PathResultPage {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("PathResultPage", resourceCulture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -132,6 +132,15 @@ namespace CampusAppWP8.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Sucht eine lokalisierte Zeichenfolge, die https://webmail.tu-cottbus.de ähnelt.
|
||||||
|
/// </summary>
|
||||||
|
internal static string UrlWebMailAddr {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("UrlWebMailAddr", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sucht eine lokalisierte Zeichenfolge, die root ähnelt.
|
/// Sucht eine lokalisierte Zeichenfolge, die root ähnelt.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -126,16 +126,13 @@
|
|||||||
<data name="ParamLectureModulNumber" xml:space="preserve">
|
<data name="ParamLectureModulNumber" xml:space="preserve">
|
||||||
<value>ModulNumber</value>
|
<value>ModulNumber</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Paramseparator" xml:space="preserve">
|
|
||||||
<value>?</value>
|
|
||||||
</data>
|
|
||||||
<data name="ParamUrl" xml:space="preserve">
|
<data name="ParamUrl" xml:space="preserve">
|
||||||
<value>Url</value>
|
<value>Url</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="PathLectureModulWebPage" xml:space="preserve">
|
<data name="PathLectureModulWebPage" xml:space="preserve">
|
||||||
<value>/Pages/Lecture/ModulWebPage.xaml</value>
|
<value>/Pages/Lecture/ModulWebPage.xaml</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="PathResultDetailWebPage" xml:space="preserve">
|
<data name="PathResultDetailPage" xml:space="preserve">
|
||||||
<value>/Pages/Lecture/ResultDetailPage.xaml</value>
|
<value>/Pages/Lecture/ResultDetailPage.xaml</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="UrlLectureModulBaseAddr" xml:space="preserve">
|
<data name="UrlLectureModulBaseAddr" xml:space="preserve">
|
||||||
@@ -144,4 +141,10 @@
|
|||||||
<data name="XMLRootElementName" xml:space="preserve">
|
<data name="XMLRootElementName" xml:space="preserve">
|
||||||
<value>root</value>
|
<value>root</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="UrlWebMailAddr" xml:space="preserve">
|
||||||
|
<value>https://webmail.tu-cottbus.de</value>
|
||||||
|
</data>
|
||||||
|
<data name="PathResultPage" xml:space="preserve">
|
||||||
|
<value>/Pages/Lecture/ResultPage.xaml</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -9,6 +9,7 @@ namespace CampusAppWP8.Pages.Mensa
|
|||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Windows.Navigation;
|
using System.Windows.Navigation;
|
||||||
|
using CampusAppWP8.Feed.Mensa;
|
||||||
using CampusAppWP8.Utility;
|
using CampusAppWP8.Utility;
|
||||||
using Microsoft.Phone.Controls;
|
using Microsoft.Phone.Controls;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user