From 70a8f7a266e73d6ea9a4fb935697d4a65a705dfb Mon Sep 17 00:00:00 2001 From: stubbfel Date: Tue, 11 Jun 2013 15:47:32 +0200 Subject: [PATCH] commit department --- CampusAppWP8/CampusAppWP8.sln | 76 +- CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj | 564 ++++++------ .../CampusAppWP8/Properties/WMAppManifest.xml | 86 +- .../Resources/AppResources.Designer.cs | 846 +++++++++--------- .../CampusAppWP8/Resources/AppResources.resx | 482 +++++----- .../model/departments/ChairModel.cs | 180 ++-- .../model/departments/DepartmentModel.cs | 172 ++-- .../model/departments/DepartmentViewModel.cs | 78 +- .../model/departments/FacultyModel.cs | 124 +-- .../model/events_news/RSSChannelModel.cs | 98 +- .../model/events_news/RSSModel.cs | 406 ++++----- .../model/events_news/RSSViewModel.cs | 102 +-- .../pages/departments/DepartmentFeed.cs | 38 +- .../pages/departments/DepartmentPage.xaml | 122 +-- .../pages/departments/DepartmentPage.xaml.cs | 264 +++--- .../CampusAppWP8/pages/events/EventFeed.cs | 48 +- .../pages/events/EventIndexPage.xaml | 62 +- .../pages/events/EventIndexPage.xaml.cs | 212 ++--- .../CampusAppWP8/pages/events/EventPage.xaml | 98 +- .../pages/events/EventPage.xaml.cs | 214 ++--- .../CampusAppWP8/pages/news/NewsFeed.cs | 48 +- .../pages/news/NewsIndexPage.xaml | 64 +- .../pages/news/NewsIndexPage.xaml.cs | 214 ++--- .../CampusAppWP8/pages/news/NewsPage.xaml | 100 +-- .../CampusAppWP8/pages/news/NewsPage.xaml.cs | 214 ++--- CampusAppWP8/CampusAppWP8/utility/URLList.cs | 32 +- 26 files changed, 2472 insertions(+), 2472 deletions(-) diff --git a/CampusAppWP8/CampusAppWP8.sln b/CampusAppWP8/CampusAppWP8.sln index 1be19652..6413a5ed 100644 --- a/CampusAppWP8/CampusAppWP8.sln +++ b/CampusAppWP8/CampusAppWP8.sln @@ -1,38 +1,38 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CampusAppWP8", "CampusAppWP8\CampusAppWP8.csproj", "{120B88CC-F3F0-4C5A-A3FD-C26E835338CC}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|ARM = Debug|ARM - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|ARM = Release|ARM - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Any CPU.Deploy.0 = Debug|Any CPU - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|ARM.ActiveCfg = Debug|ARM - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|ARM.Build.0 = Debug|ARM - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|ARM.Deploy.0 = Debug|ARM - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|x86.ActiveCfg = Debug|x86 - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|x86.Build.0 = Debug|x86 - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|x86.Deploy.0 = Debug|x86 - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Any CPU.Build.0 = Release|Any CPU - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Any CPU.Deploy.0 = Release|Any CPU - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|ARM.ActiveCfg = Release|ARM - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|ARM.Build.0 = Release|ARM - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|ARM.Deploy.0 = Release|ARM - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|x86.ActiveCfg = Release|x86 - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|x86.Build.0 = Release|x86 - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|x86.Deploy.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CampusAppWP8", "CampusAppWP8\CampusAppWP8.csproj", "{120B88CC-F3F0-4C5A-A3FD-C26E835338CC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|ARM = Debug|ARM + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|ARM = Release|ARM + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|ARM.ActiveCfg = Debug|ARM + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|ARM.Build.0 = Debug|ARM + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|ARM.Deploy.0 = Debug|ARM + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|x86.ActiveCfg = Debug|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|x86.Build.0 = Debug|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Debug|x86.Deploy.0 = Debug|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Any CPU.Build.0 = Release|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|Any CPU.Deploy.0 = Release|Any CPU + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|ARM.ActiveCfg = Release|ARM + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|ARM.Build.0 = Release|ARM + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|ARM.Deploy.0 = Release|ARM + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|x86.ActiveCfg = Release|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|x86.Build.0 = Release|x86 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC}.Release|x86.Deploy.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj index 40d62a03..7b7fe18c 100644 --- a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj +++ b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj @@ -1,283 +1,283 @@ - - - - Debug - AnyCPU - 10.0.20506 - 2.0 - {120B88CC-F3F0-4C5A-A3FD-C26E835338CC} - {C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} - Library - Properties - CampusAppWP8 - CampusAppWP8 - WindowsPhone - v8.0 - $(TargetFrameworkVersion) - true - - - true - true - CampusAppWP8_$(Configuration)_$(Platform).xap - Properties\AppManifest.xml - CampusAppWP8.App - true - 11.0 - true - 5.0.40218.0 - - - true - full - false - Bin\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - true - full - false - Bin\x86\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\x86\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - true - full - false - Bin\ARM\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\ARM\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - - App.xaml - - - - MainPage.xaml - - - - - - - - - - - CampusMapPage.xaml - - - - DepartmentPage.xaml - - - - EventIndexPage.xaml - - - EventPage.xaml - - - LecturePage.xaml - - - - - - MensaPage.xaml - - - - NewsIndexPage.xaml - - - NewsPage.xaml - - - - StartPage.xaml - - - WebmailPage.xaml - - - - True - True - AppResources.resx - - - True - True - Constants.resx - - - - - - - - - - - - - Designer - MSBuild:Compile - - - MSBuild:MarkupCompilePass1 - - - Designer - MSBuild:Compile - - - MSBuild:Compile - Designer - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - MSBuild:Compile - Designer - - - Designer - MSBuild:Compile - - - MSBuild:Compile - Designer - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - MSBuild:Compile - Designer - - - - - - - Designer - - - - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - - - - - - - PublicResXFileCodeGenerator - AppResources.Designer.cs - - - ResXFileCodeGenerator - Constants.Designer.cs - - - - - - ..\packages\WPtoolkit.4.2012.10.30\lib\wp8\Microsoft.Phone.Controls.Toolkit.dll - - - - - - - + + + + Debug + AnyCPU + 10.0.20506 + 2.0 + {120B88CC-F3F0-4C5A-A3FD-C26E835338CC} + {C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + CampusAppWP8 + CampusAppWP8 + WindowsPhone + v8.0 + $(TargetFrameworkVersion) + true + + + true + true + CampusAppWP8_$(Configuration)_$(Platform).xap + Properties\AppManifest.xml + CampusAppWP8.App + true + 11.0 + true + 5.0.40218.0 + + + true + full + false + Bin\Debug + DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + pdbonly + true + Bin\Release + TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + true + full + false + Bin\x86\Debug + DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + pdbonly + true + Bin\x86\Release + TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + true + full + false + Bin\ARM\Debug + DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + pdbonly + true + Bin\ARM\Release + TRACE;SILVERLIGHT;WINDOWS_PHONE + true + true + prompt + 4 + + + + App.xaml + + + + MainPage.xaml + + + + + + + + + + + CampusMapPage.xaml + + + + DepartmentPage.xaml + + + + EventIndexPage.xaml + + + EventPage.xaml + + + LecturePage.xaml + + + + + + MensaPage.xaml + + + + NewsIndexPage.xaml + + + NewsPage.xaml + + + + StartPage.xaml + + + WebmailPage.xaml + + + + True + True + AppResources.resx + + + True + True + Constants.resx + + + + + + + + + + + + + Designer + MSBuild:Compile + + + MSBuild:MarkupCompilePass1 + + + Designer + MSBuild:Compile + + + MSBuild:Compile + Designer + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + MSBuild:Compile + Designer + + + Designer + MSBuild:Compile + + + MSBuild:Compile + Designer + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + MSBuild:Compile + Designer + + + + + + + Designer + + + + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + + + + + + + + PublicResXFileCodeGenerator + AppResources.Designer.cs + + + ResXFileCodeGenerator + Constants.Designer.cs + + + + + + ..\packages\WPtoolkit.4.2012.10.30\lib\wp8\Microsoft.Phone.Controls.Toolkit.dll + + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/Properties/WMAppManifest.xml b/CampusAppWP8/CampusAppWP8/Properties/WMAppManifest.xml index cd51949e..16bab57b 100644 --- a/CampusAppWP8/CampusAppWP8/Properties/WMAppManifest.xml +++ b/CampusAppWP8/CampusAppWP8/Properties/WMAppManifest.xml @@ -1,44 +1,44 @@ - - - - - Assets\ApplicationIcon.png - - - - - - - - - - - - - - - - Assets\Tiles\FlipCycleTileSmall.png - 0 - Assets\Tiles\FlipCycleTileMedium.png - CampusAppWP8 - - - - - - - - - - - - - - - - - - - + + + + + Assets\ApplicationIcon.png + + + + + + + + + + + + + + + + Assets\Tiles\FlipCycleTileSmall.png + 0 + Assets\Tiles\FlipCycleTileMedium.png + CampusAppWP8 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/Resources/AppResources.Designer.cs b/CampusAppWP8/CampusAppWP8/Resources/AppResources.Designer.cs index 8ae30501..21b5c85d 100644 --- a/CampusAppWP8/CampusAppWP8/Resources/AppResources.Designer.cs +++ b/CampusAppWP8/CampusAppWP8/Resources/AppResources.Designer.cs @@ -1,423 +1,423 @@ -//------------------------------------------------------------------------------ -// -// Dieser Code wurde von einem Tool generiert. -// Laufzeitversion:4.0.30319.18046 -// -// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn -// der Code erneut generiert wird. -// -//------------------------------------------------------------------------------ - -namespace CampusAppWP8.Resources { - using System; - - - /// - /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. - /// - // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert - // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. - // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen - // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - public class AppResources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal AppResources() { - } - - /// - /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CampusAppWP8.Resources.AppResources", typeof(AppResources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle - /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Hinzufügen ähnelt. - /// - public static string AppBarButtonText { - get { - return ResourceManager.GetString("AppBarButtonText", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Menübefehl ähnelt. - /// - public static string AppBarMenuItemText { - get { - return ResourceManager.GetString("AppBarMenuItemText", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die BTU CampusApp ähnelt. - /// - public static string ApplicationTitle { - get { - return ResourceManager.GetString("ApplicationTitle", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Campusplan ähnelt. - /// - public static string CampusMapApp_Title { - get { - return ResourceManager.GetString("CampusMapApp_Title", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Lehrstühle ähnelt. - /// - public static string DepartmentApp_Title { - get { - return ResourceManager.GetString("DepartmentApp_Title", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Events ähnelt. - /// - public static string EventApp_Title { - get { - return ResourceManager.GetString("EventApp_Title", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Fakultät ähnelt. - /// - public static string Faculty { - get { - return ResourceManager.GetString("Faculty", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Hausaufgaben ähnelt. - /// - public static string HomeworkApp_Title { - get { - return ResourceManager.GetString("HomeworkApp_Title", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Studiengang ähnelt. - /// - public static string LectureApp_Course { - get { - return ResourceManager.GetString("LectureApp_Course", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Abschluss ähnelt. - /// - public static string LectureApp_Degree { - get { - return ResourceManager.GetString("LectureApp_Degree", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Vorlesungsname ähnelt. - /// - public static string LectureApp_LectureName { - get { - return ResourceManager.GetString("LectureApp_LectureName", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Semester ähnelt. - /// - public static string LectureApp_Semester { - get { - return ResourceManager.GetString("LectureApp_Semester", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Fachsemester ähnelt. - /// - public static string LectureApp_Term { - get { - return ResourceManager.GetString("LectureApp_Term", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Vorlesung ähnelt. - /// - public static string LectureApp_Title { - get { - return ResourceManager.GetString("LectureApp_Title", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Links ähnelt. - /// - public static string LinkApp_Title { - get { - return ResourceManager.GetString("LinkApp_Title", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Webmail ähnelt. - /// - public static string MailApp_Title { - get { - return ResourceManager.GetString("MailApp_Title", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Aktion ähnelt. - /// - public static string MensaApp_Action { - get { - return ResourceManager.GetString("MensaApp_Action", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Bio ähnelt. - /// - public static string MensaApp_Bio { - get { - return ResourceManager.GetString("MensaApp_Bio", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Essen 1 ähnelt. - /// - public static string MensaApp_Dinner1 { - get { - return ResourceManager.GetString("MensaApp_Dinner1", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Essen 2 ähnelt. - /// - public static string MensaApp_Dinner2 { - get { - return ResourceManager.GetString("MensaApp_Dinner2", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Essen 2 ähnelt. - /// - public static string MensaApp_Dinner3 { - get { - return ResourceManager.GetString("MensaApp_Dinner3", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Essen 4 ähnelt. - /// - public static string MensaApp_Dinner4 { - get { - return ResourceManager.GetString("MensaApp_Dinner4", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Heute nicht im Angbot ähnelt. - /// - public static string MensaApp_NotToday { - get { - return ResourceManager.GetString("MensaApp_NotToday", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Mensaplan ähnelt. - /// - public static string MensaApp_Title { - get { - return ResourceManager.GetString("MensaApp_Title", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die News ähnelt. - /// - public static string NewsApp_Title { - get { - return ResourceManager.GetString("NewsApp_Title", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die zur Übersicht ähnelt. - /// - public static string NewsHomeBtn { - get { - return ResourceManager.GetString("NewsHomeBtn", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Link ähnelt. - /// - public static string NewsLinkBtn { - get { - return ResourceManager.GetString("NewsLinkBtn", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Öffnungszeiten ähnelt. - /// - public static string OpenHoursApp_Title { - get { - return ResourceManager.GetString("OpenHoursApp_Title", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Fachschaften ähnelt. - /// - public static string OSAApp_Title { - get { - return ResourceManager.GetString("OSAApp_Title", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Lehrstühle ähnelt. - /// - public static string Professorship_chairs { - get { - return ResourceManager.GetString("Professorship_chairs", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die LeftToRight ähnelt. - /// - public static string ResourceFlowDirection { - get { - return ResourceManager.GetString("ResourceFlowDirection", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die de-de ähnelt. - /// - public static string ResourceLanguage { - get { - return ResourceManager.GetString("ResourceLanguage", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Beispielwert für die Laufzeiteigenschaft ähnelt. - /// - public static string SampleProperty { - get { - return ResourceManager.GetString("SampleProperty", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Freitag ähnelt. - /// - public static string Time_Day_Friday { - get { - return ResourceManager.GetString("Time_Day_Friday", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Montag ähnelt. - /// - public static string Time_Day_Monday { - get { - return ResourceManager.GetString("Time_Day_Monday", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Donnerstag ähnelt. - /// - public static string Time_Day_Thursday { - get { - return ResourceManager.GetString("Time_Day_Thursday", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Dienstag ähnelt. - /// - public static string Time_Day_Tuesday { - get { - return ResourceManager.GetString("Time_Day_Tuesday", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Mittwoch ähnelt. - /// - public static string Time_Day_Wednesday { - get { - return ResourceManager.GetString("Time_Day_Wednesday", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Stundenplan ähnelt. - /// - public static string TimeTableApp_Title { - get { - return ResourceManager.GetString("TimeTableApp_Title", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Willkommen zur BTU-CampusApp WP8 ähnelt. - /// - public static string WelcomeString { - get { - return ResourceManager.GetString("WelcomeString", resourceCulture); - } - } - } -} +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.18046 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +namespace CampusAppWP8.Resources { + using System; + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert + // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class AppResources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal AppResources() { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CampusAppWP8.Resources.AppResources", typeof(AppResources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Hinzufügen ähnelt. + /// + public static string AppBarButtonText { + get { + return ResourceManager.GetString("AppBarButtonText", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Menübefehl ähnelt. + /// + public static string AppBarMenuItemText { + get { + return ResourceManager.GetString("AppBarMenuItemText", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die BTU CampusApp ähnelt. + /// + public static string ApplicationTitle { + get { + return ResourceManager.GetString("ApplicationTitle", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Campusplan ähnelt. + /// + public static string CampusMapApp_Title { + get { + return ResourceManager.GetString("CampusMapApp_Title", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Lehrstühle ähnelt. + /// + public static string DepartmentApp_Title { + get { + return ResourceManager.GetString("DepartmentApp_Title", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Events ähnelt. + /// + public static string EventApp_Title { + get { + return ResourceManager.GetString("EventApp_Title", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Fakultät ähnelt. + /// + public static string Faculty { + get { + return ResourceManager.GetString("Faculty", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Hausaufgaben ähnelt. + /// + public static string HomeworkApp_Title { + get { + return ResourceManager.GetString("HomeworkApp_Title", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Studiengang ähnelt. + /// + public static string LectureApp_Course { + get { + return ResourceManager.GetString("LectureApp_Course", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Abschluss ähnelt. + /// + public static string LectureApp_Degree { + get { + return ResourceManager.GetString("LectureApp_Degree", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Vorlesungsname ähnelt. + /// + public static string LectureApp_LectureName { + get { + return ResourceManager.GetString("LectureApp_LectureName", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Semester ähnelt. + /// + public static string LectureApp_Semester { + get { + return ResourceManager.GetString("LectureApp_Semester", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Fachsemester ähnelt. + /// + public static string LectureApp_Term { + get { + return ResourceManager.GetString("LectureApp_Term", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Vorlesung ähnelt. + /// + public static string LectureApp_Title { + get { + return ResourceManager.GetString("LectureApp_Title", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Links ähnelt. + /// + public static string LinkApp_Title { + get { + return ResourceManager.GetString("LinkApp_Title", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Webmail ähnelt. + /// + public static string MailApp_Title { + get { + return ResourceManager.GetString("MailApp_Title", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Aktion ähnelt. + /// + public static string MensaApp_Action { + get { + return ResourceManager.GetString("MensaApp_Action", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Bio ähnelt. + /// + public static string MensaApp_Bio { + get { + return ResourceManager.GetString("MensaApp_Bio", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Essen 1 ähnelt. + /// + public static string MensaApp_Dinner1 { + get { + return ResourceManager.GetString("MensaApp_Dinner1", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Essen 2 ähnelt. + /// + public static string MensaApp_Dinner2 { + get { + return ResourceManager.GetString("MensaApp_Dinner2", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Essen 2 ähnelt. + /// + public static string MensaApp_Dinner3 { + get { + return ResourceManager.GetString("MensaApp_Dinner3", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Essen 4 ähnelt. + /// + public static string MensaApp_Dinner4 { + get { + return ResourceManager.GetString("MensaApp_Dinner4", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Heute nicht im Angbot ähnelt. + /// + public static string MensaApp_NotToday { + get { + return ResourceManager.GetString("MensaApp_NotToday", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Mensaplan ähnelt. + /// + public static string MensaApp_Title { + get { + return ResourceManager.GetString("MensaApp_Title", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die News ähnelt. + /// + public static string NewsApp_Title { + get { + return ResourceManager.GetString("NewsApp_Title", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die zur Übersicht ähnelt. + /// + public static string NewsHomeBtn { + get { + return ResourceManager.GetString("NewsHomeBtn", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Link ähnelt. + /// + public static string NewsLinkBtn { + get { + return ResourceManager.GetString("NewsLinkBtn", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Öffnungszeiten ähnelt. + /// + public static string OpenHoursApp_Title { + get { + return ResourceManager.GetString("OpenHoursApp_Title", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Fachschaften ähnelt. + /// + public static string OSAApp_Title { + get { + return ResourceManager.GetString("OSAApp_Title", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Lehrstühle ähnelt. + /// + public static string Professorship_chairs { + get { + return ResourceManager.GetString("Professorship_chairs", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die LeftToRight ähnelt. + /// + public static string ResourceFlowDirection { + get { + return ResourceManager.GetString("ResourceFlowDirection", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die de-de ähnelt. + /// + public static string ResourceLanguage { + get { + return ResourceManager.GetString("ResourceLanguage", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Beispielwert für die Laufzeiteigenschaft ähnelt. + /// + public static string SampleProperty { + get { + return ResourceManager.GetString("SampleProperty", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Freitag ähnelt. + /// + public static string Time_Day_Friday { + get { + return ResourceManager.GetString("Time_Day_Friday", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Montag ähnelt. + /// + public static string Time_Day_Monday { + get { + return ResourceManager.GetString("Time_Day_Monday", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Donnerstag ähnelt. + /// + public static string Time_Day_Thursday { + get { + return ResourceManager.GetString("Time_Day_Thursday", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Dienstag ähnelt. + /// + public static string Time_Day_Tuesday { + get { + return ResourceManager.GetString("Time_Day_Tuesday", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Mittwoch ähnelt. + /// + public static string Time_Day_Wednesday { + get { + return ResourceManager.GetString("Time_Day_Wednesday", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Stundenplan ähnelt. + /// + public static string TimeTableApp_Title { + get { + return ResourceManager.GetString("TimeTableApp_Title", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Willkommen zur BTU-CampusApp WP8 ähnelt. + /// + public static string WelcomeString { + get { + return ResourceManager.GetString("WelcomeString", resourceCulture); + } + } + } +} diff --git a/CampusAppWP8/CampusAppWP8/Resources/AppResources.resx b/CampusAppWP8/CampusAppWP8/Resources/AppResources.resx index a8be2df5..c55ad9a1 100644 --- a/CampusAppWP8/CampusAppWP8/Resources/AppResources.resx +++ b/CampusAppWP8/CampusAppWP8/Resources/AppResources.resx @@ -1,242 +1,242 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - LeftToRight - Controls the FlowDirection for all elements in the RootFrame. Set to the traditional direction of this resource file's language - - - de-de - Controls the Language and ensures that the font for all elements in the RootFrame aligns with the app's language. Set to the language code of this resource file's language. - - - BTU CampusApp - - - Beispielwert für die Laufzeiteigenschaft - - - Hinzufügen - - - Menübefehl - - - Willkommen zur BTU-CampusApp WP8 - - - Campusplan - - - Lehrstühle - - - Events - - - Hausaufgaben - - - Vorlesung - - - Links - - - Webmail - - - Mensaplan - - - News - - - Öffnungszeiten - - - Fachschaften - - - Stundenplan - - - Studiengang - - - Abschluss - - - Vorlesungsname - - - Semester - - - Fachsemester - - - Freitag - - - Montag - - - Donnerstag - - - Dienstag - - - Mittwoch - - - Aktion - - - Bio - - - Essen 1 - - - Essen 2 - - - Essen 2 - - - Essen 4 - - - Heute nicht im Angbot - - - zur Übersicht - - - Fakultät - - - Lehrstühle - - - Link - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + LeftToRight + Controls the FlowDirection for all elements in the RootFrame. Set to the traditional direction of this resource file's language + + + de-de + Controls the Language and ensures that the font for all elements in the RootFrame aligns with the app's language. Set to the language code of this resource file's language. + + + BTU CampusApp + + + Beispielwert für die Laufzeiteigenschaft + + + Hinzufügen + + + Menübefehl + + + Willkommen zur BTU-CampusApp WP8 + + + Campusplan + + + Lehrstühle + + + Events + + + Hausaufgaben + + + Vorlesung + + + Links + + + Webmail + + + Mensaplan + + + News + + + Öffnungszeiten + + + Fachschaften + + + Stundenplan + + + Studiengang + + + Abschluss + + + Vorlesungsname + + + Semester + + + Fachsemester + + + Freitag + + + Montag + + + Donnerstag + + + Dienstag + + + Mittwoch + + + Aktion + + + Bio + + + Essen 1 + + + Essen 2 + + + Essen 2 + + + Essen 4 + + + Heute nicht im Angbot + + + zur Übersicht + + + Fakultät + + + Lehrstühle + + + Link + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/model/departments/ChairModel.cs b/CampusAppWP8/CampusAppWP8/model/departments/ChairModel.cs index c8935ab5..5c136dfa 100644 --- a/CampusAppWP8/CampusAppWP8/model/departments/ChairModel.cs +++ b/CampusAppWP8/CampusAppWP8/model/departments/ChairModel.cs @@ -1,90 +1,90 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Xml.Serialization; - -namespace CampusAppWP8.model.departments -{ - /// - /// Class to hold information about a professorship chair. - /// - public class ChairModel : BaseModel - { - private string name_de; // german name of the chair - private string url; // link-url to the chair homepage - private string name_en; // english name of the chair - - /// - /// Default Constructor. Set every class variable to default value. - /// - public ChairModel() - { - this.name_de = String.Empty; - this.name_en = String.Empty; - this.url = String.Empty; - } - - /// - /// Constructor. Set the german and english name. - /// - /// Name of the professorship chair. - public ChairModel(string name) - { - this.name_de = name; - this.name_en = name; - this.url = String.Empty; - } - - /// - /// Set or return the german name of the chair. - /// - [XmlAttribute("name_de")] - public string Name_DE - { - get { return this.name_de; } - set - { - if (value != this.name_de) - { - this.name_de = value; - NotifyPropertyChanged("chair"); - } - } - } - - /// - /// Set or return the english name of the chair. - /// - [XmlAttribute("name_en")] - public string Name_EN - { - get { return this.name_en; } - set - { - if (value != this.name_en) - { - this.name_en = value; - NotifyPropertyChanged("chair"); - } - } - } - - /// - /// Set or return the url of the chair homepage. - /// - [XmlAttribute("url")] - public string Url - { - get { return this.url; } - set - { - if (value != this.url) - { - this.url = value; - NotifyPropertyChanged("chair"); - } - } - } - } -} +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Xml.Serialization; + +namespace CampusAppWP8.model.departments +{ + /// + /// Class to hold information about a professorship chair. + /// + public class ChairModel : BaseModel + { + private string name_de; // german name of the chair + private string url; // link-url to the chair homepage + private string name_en; // english name of the chair + + /// + /// Default Constructor. Set every class variable to default value. + /// + public ChairModel() + { + this.name_de = String.Empty; + this.name_en = String.Empty; + this.url = String.Empty; + } + + /// + /// Constructor. Set the german and english name. + /// + /// Name of the professorship chair. + public ChairModel(string name) + { + this.name_de = name; + this.name_en = name; + this.url = String.Empty; + } + + /// + /// Set or return the german name of the chair. + /// + [XmlAttribute("name_de")] + public string Name_DE + { + get { return this.name_de; } + set + { + if (value != this.name_de) + { + this.name_de = value; + NotifyPropertyChanged("chair"); + } + } + } + + /// + /// Set or return the english name of the chair. + /// + [XmlAttribute("name_en")] + public string Name_EN + { + get { return this.name_en; } + set + { + if (value != this.name_en) + { + this.name_en = value; + NotifyPropertyChanged("chair"); + } + } + } + + /// + /// Set or return the url of the chair homepage. + /// + [XmlAttribute("url")] + public string Url + { + get { return this.url; } + set + { + if (value != this.url) + { + this.url = value; + NotifyPropertyChanged("chair"); + } + } + } + } +} diff --git a/CampusAppWP8/CampusAppWP8/model/departments/DepartmentModel.cs b/CampusAppWP8/CampusAppWP8/model/departments/DepartmentModel.cs index c18eaa64..e178c47f 100644 --- a/CampusAppWP8/CampusAppWP8/model/departments/DepartmentModel.cs +++ b/CampusAppWP8/CampusAppWP8/model/departments/DepartmentModel.cs @@ -1,86 +1,86 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Text; -using System.Windows; -using System.Xml.Serialization; - -namespace CampusAppWP8.model.departments -{ - public class DepartmentModel : BaseModel - { - [XmlElement("chair")] - public ObservableCollection _chairs { get; set; } - - private string _name = "d_mod"; - private Visibility visible; - - public DepartmentModel() - { - this.visible = Visibility.Collapsed; - this.Chairs = new ObservableCollection(); - //this.LoadData(); - } - - public DepartmentModel(string name) - { - this.visible = Visibility.Collapsed; - _name = name; - this.Chairs = new ObservableCollection(); - //this.LoadData(); - } - - public void LoadData() - { - this.Chairs.Add(new ChairModel("LS 1")); - this.Chairs.Add(new ChairModel("LS 2")); - this.Chairs.Add(new ChairModel("LS 3")); - this.Chairs.Add(new ChairModel("LS 4")); - } - - public ObservableCollection Chairs - { - get - { - return _chairs; - } - set - { - if (value != _chairs) - { - _chairs = value; - NotifyPropertyChanged("department"); - } - } - } - - public string Name - { - get - { - return _name; - } - set - { - if (value != _name) - { - _name = value; - NotifyPropertyChanged("chair"); - } - } - } - - public Visibility Visible - { - get { return this.visible; } - set - { - if (value != this.visible) - { - this.visible = value; - } - } - } - } -} +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Text; +using System.Windows; +using System.Xml.Serialization; + +namespace CampusAppWP8.model.departments +{ + public class DepartmentModel : BaseModel + { + [XmlElement("chair")] + public ObservableCollection _chairs { get; set; } + + private string _name = "d_mod"; + private Visibility visible; + + public DepartmentModel() + { + this.visible = Visibility.Collapsed; + this.Chairs = new ObservableCollection(); + //this.LoadData(); + } + + public DepartmentModel(string name) + { + this.visible = Visibility.Collapsed; + _name = name; + this.Chairs = new ObservableCollection(); + //this.LoadData(); + } + + public void LoadData() + { + this.Chairs.Add(new ChairModel("LS 1")); + this.Chairs.Add(new ChairModel("LS 2")); + this.Chairs.Add(new ChairModel("LS 3")); + this.Chairs.Add(new ChairModel("LS 4")); + } + + public ObservableCollection Chairs + { + get + { + return _chairs; + } + set + { + if (value != _chairs) + { + _chairs = value; + NotifyPropertyChanged("department"); + } + } + } + + public string Name + { + get + { + return _name; + } + set + { + if (value != _name) + { + _name = value; + NotifyPropertyChanged("chair"); + } + } + } + + public Visibility Visible + { + get { return this.visible; } + set + { + if (value != this.visible) + { + this.visible = value; + } + } + } + } +} diff --git a/CampusAppWP8/CampusAppWP8/model/departments/DepartmentViewModel.cs b/CampusAppWP8/CampusAppWP8/model/departments/DepartmentViewModel.cs index d9d242b0..6d407811 100644 --- a/CampusAppWP8/CampusAppWP8/model/departments/DepartmentViewModel.cs +++ b/CampusAppWP8/CampusAppWP8/model/departments/DepartmentViewModel.cs @@ -1,39 +1,39 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Xml.Serialization; - -namespace CampusAppWP8.model.departments -{ - [XmlRoot("root")] - public class DepartmentViewModel : BaseViewModel - { - [XmlArray("professorships")] - [XmlArrayItem("faculty")] - public ObservableCollection _faculties { get; set; } - - public DepartmentViewModel() - { - this.Faculties = new ObservableCollection(); - } - - public ObservableCollection Faculties - { - get - { - return _faculties; - } - set - { - if (value != _faculties) - { - _faculties = value; - NotifyPropertyChanged("foodDays"); - } - } - } - } -} +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Xml.Serialization; + +namespace CampusAppWP8.model.departments +{ + [XmlRoot("root")] + public class DepartmentViewModel : BaseViewModel + { + [XmlArray("professorships")] + [XmlArrayItem("faculty")] + public ObservableCollection _faculties { get; set; } + + public DepartmentViewModel() + { + this.Faculties = new ObservableCollection(); + } + + public ObservableCollection Faculties + { + get + { + return _faculties; + } + set + { + if (value != _faculties) + { + _faculties = value; + NotifyPropertyChanged("foodDays"); + } + } + } + } +} diff --git a/CampusAppWP8/CampusAppWP8/model/departments/FacultyModel.cs b/CampusAppWP8/CampusAppWP8/model/departments/FacultyModel.cs index c3133b3f..424b8fdb 100644 --- a/CampusAppWP8/CampusAppWP8/model/departments/FacultyModel.cs +++ b/CampusAppWP8/CampusAppWP8/model/departments/FacultyModel.cs @@ -1,62 +1,62 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Text; -using System.Xml.Serialization; -using CampusAppWP8.Resources; - -namespace CampusAppWP8.model.departments -{ - public class FacultyModel : BaseModel - { - [XmlElement("chair")] - public ObservableCollection chairs { get; set; } - //public ObservableCollection _faculties { get; set; } - - private string name = "t_fak"; - - public FacultyModel() - { - //this.Faculties = new ObservableCollection(); - this.chairs = new ObservableCollection(); - } - - public FacultyModel(string name) - { - this.name = name; - //this.Faculties = new ObservableCollection(); - this.chairs = new ObservableCollection(); - } - - public ObservableCollection Chairs - { - get { return this.chairs; } - set - { - if (value != this.chairs) - { - this.chairs = value; - NotifyPropertyChanged("faculty"); - } - } - } - - [XmlAttribute("id")] - public string Name - { - get - { - return AppResources.Faculty + " " + this.name; - } - set - { - if (value != this.name) - { - this.name = value; - NotifyPropertyChanged("faculty"); - } - } - } - } -} +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Text; +using System.Xml.Serialization; +using CampusAppWP8.Resources; + +namespace CampusAppWP8.model.departments +{ + public class FacultyModel : BaseModel + { + [XmlElement("chair")] + public ObservableCollection chairs { get; set; } + //public ObservableCollection _faculties { get; set; } + + private string name = "t_fak"; + + public FacultyModel() + { + //this.Faculties = new ObservableCollection(); + this.chairs = new ObservableCollection(); + } + + public FacultyModel(string name) + { + this.name = name; + //this.Faculties = new ObservableCollection(); + this.chairs = new ObservableCollection(); + } + + public ObservableCollection Chairs + { + get { return this.chairs; } + set + { + if (value != this.chairs) + { + this.chairs = value; + NotifyPropertyChanged("faculty"); + } + } + } + + [XmlAttribute("id")] + public string Name + { + get + { + return AppResources.Faculty + " " + this.name; + } + set + { + if (value != this.name) + { + this.name = value; + NotifyPropertyChanged("faculty"); + } + } + } + } +} diff --git a/CampusAppWP8/CampusAppWP8/model/events_news/RSSChannelModel.cs b/CampusAppWP8/CampusAppWP8/model/events_news/RSSChannelModel.cs index f9d4d42d..0198bcf0 100644 --- a/CampusAppWP8/CampusAppWP8/model/events_news/RSSChannelModel.cs +++ b/CampusAppWP8/CampusAppWP8/model/events_news/RSSChannelModel.cs @@ -1,49 +1,49 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Xml.Serialization; -using System.Collections.ObjectModel; - -namespace CampusAppWP8.model.events_news -{ - /// - /// Channel Model, which contains the rss feed item list. - /// - public class RSSChannelModel : BaseModel - { - /// - /// RssFeed information item list. - /// - [XmlElement("item")] - public ObservableCollection item { get; set; } - - /// - /// Default constructor. - /// - public RSSChannelModel() - { - this.item = new ObservableCollection(); - } - - /// - /// Set/Get the rss feed item list. - /// - public ObservableCollection Item - { - get - { - return this.item; - } - set - { - if (value != this.item) - { - this.item = value; - NotifyPropertyChanged("item"); - } - } - } - } -} +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Xml.Serialization; +using System.Collections.ObjectModel; + +namespace CampusAppWP8.model.events_news +{ + /// + /// Channel Model, which contains the rss feed item list. + /// + public class RSSChannelModel : BaseModel + { + /// + /// RssFeed information item list. + /// + [XmlElement("item")] + public ObservableCollection item { get; set; } + + /// + /// Default constructor. + /// + public RSSChannelModel() + { + this.item = new ObservableCollection(); + } + + /// + /// Set/Get the rss feed item list. + /// + public ObservableCollection Item + { + get + { + return this.item; + } + set + { + if (value != this.item) + { + this.item = value; + NotifyPropertyChanged("item"); + } + } + } + } +} diff --git a/CampusAppWP8/CampusAppWP8/model/events_news/RSSModel.cs b/CampusAppWP8/CampusAppWP8/model/events_news/RSSModel.cs index 6da3af44..13f34ab8 100644 --- a/CampusAppWP8/CampusAppWP8/model/events_news/RSSModel.cs +++ b/CampusAppWP8/CampusAppWP8/model/events_news/RSSModel.cs @@ -1,203 +1,203 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Xml.Serialization; - -namespace CampusAppWP8.model.events_news -{ - /// - /// Contains the rss feed informations. - /// - public class RSSModel : BaseModel - { - /// - /// Title of the fees - /// - private string title; - /// - /// Description text of the feed. - /// - private string text; - /// - /// Timestamp (publication date) of the event or news. - /// - private DateTime timestamp; - /// - /// Url of the feed. - /// - private string link; - - /// - /// Set/Get the title of the feed. - /// - [XmlElement("title")] - public string Title - { - get { return this.title; } - set - { - if (this.title != value) - { - this.title = value; - NotifyPropertyChanged("rss"); - } - } - } - - /// - /// Set/Get the text of the feed. - /// - [XmlElement("description")] - public string Text - { - get { return this.text; } - set - { - if (this.text != HTMLUnicodeToString(value)) - { - this.text = HTMLUnicodeToString(value); - NotifyPropertyChanged("rss"); - } - } - } - - /// - /// Set/Get the timestamp of the feed as string. - /// - [XmlElement("pubDate")] - public string Timestamp - { - get { return this.timestamp.ToString("R"); } - set - { - if (this.timestamp != DateTime.Parse(value)) - { - this.timestamp = DateTime.Parse(value); - NotifyPropertyChanged("rss"); - } - } - } - - /// - /// Set/Get the timestamp of the feed as DateTime object. - /// - public DateTime DTTimestamp - { - get { return this.timestamp; } - set { this.timestamp = value; } - } - - /// - /// Return the date of the timestamp as string. - /// example: Mon, 25.06.2013. - /// - public string Date - { - get { return String.Format("{0:ddd, dd.MM.yyyy}", this.timestamp); } - } - - /// - /// Return the time of the timestamp as string. - /// example: 12:56 Uhr. - /// - public string Time - { - get { return String.Format("{0:h:mm} Uhr", this.timestamp); } - } - - /// - /// Set/Get the link/url of the feed. - /// - [XmlElement("link")] - public string Link - { - get { return this.link; } - set - { - if (this.link != value) - { - this.link = value; - NotifyPropertyChanged("rss"); - } - } - } - - /// - /// Remove or transform html-unicode specific tags into ascii. - /// - /// html string - /// ascii string - private string HTMLUnicodeToString(string htmluni) - { - StringBuilder retValue = new StringBuilder(); - - for(int i = 0; i < htmluni.Length; i++) - { - switch (htmluni[i]) - { - // beginning tag of the unicode - case '&': - { - int startOff = i + 2; - // sear closing tag of the unicode - int endOff = htmluni.IndexOf(';', startOff); - // get and parse value inbetween - string sub = htmluni.Substring(startOff, endOff - startOff); - int cVal = int.Parse(sub); - - switch (cVal) - { - // if the unicode value is 128 (€) - case 128: - retValue.Append('€'); - break; - - default: - retValue.Append((char)cVal); - break; - } - - // set the current index to the end of the unicode tag - i = endOff; - } - break; - case '<': - { - // ignoring <..> html tags - i = htmluni.IndexOf('>', i); - } - break; - case '\t': - // removing tabs - break; - - default: - { - // adding other characters to the return string - retValue.Append(htmluni[i]); - } - break; - } - } - - return retValue.ToString(); - } - - /// - /// Comparing function for Datetime-Timestamps. - /// (currently unused) - /// - /// first item - /// secound item - /// - public static int CompareTimeStamp(RSSModel item1, RSSModel item2) - { - if (item1.DTTimestamp > item2.DTTimestamp) - return -1; - else - return 0; - } - } -} +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Xml.Serialization; + +namespace CampusAppWP8.model.events_news +{ + /// + /// Contains the rss feed informations. + /// + public class RSSModel : BaseModel + { + /// + /// Title of the fees + /// + private string title; + /// + /// Description text of the feed. + /// + private string text; + /// + /// Timestamp (publication date) of the event or news. + /// + private DateTime timestamp; + /// + /// Url of the feed. + /// + private string link; + + /// + /// Set/Get the title of the feed. + /// + [XmlElement("title")] + public string Title + { + get { return this.title; } + set + { + if (this.title != value) + { + this.title = value; + NotifyPropertyChanged("rss"); + } + } + } + + /// + /// Set/Get the text of the feed. + /// + [XmlElement("description")] + public string Text + { + get { return this.text; } + set + { + if (this.text != HTMLUnicodeToString(value)) + { + this.text = HTMLUnicodeToString(value); + NotifyPropertyChanged("rss"); + } + } + } + + /// + /// Set/Get the timestamp of the feed as string. + /// + [XmlElement("pubDate")] + public string Timestamp + { + get { return this.timestamp.ToString("R"); } + set + { + if (this.timestamp != DateTime.Parse(value)) + { + this.timestamp = DateTime.Parse(value); + NotifyPropertyChanged("rss"); + } + } + } + + /// + /// Set/Get the timestamp of the feed as DateTime object. + /// + public DateTime DTTimestamp + { + get { return this.timestamp; } + set { this.timestamp = value; } + } + + /// + /// Return the date of the timestamp as string. + /// example: Mon, 25.06.2013. + /// + public string Date + { + get { return String.Format("{0:ddd, dd.MM.yyyy}", this.timestamp); } + } + + /// + /// Return the time of the timestamp as string. + /// example: 12:56 Uhr. + /// + public string Time + { + get { return String.Format("{0:h:mm} Uhr", this.timestamp); } + } + + /// + /// Set/Get the link/url of the feed. + /// + [XmlElement("link")] + public string Link + { + get { return this.link; } + set + { + if (this.link != value) + { + this.link = value; + NotifyPropertyChanged("rss"); + } + } + } + + /// + /// Remove or transform html-unicode specific tags into ascii. + /// + /// html string + /// ascii string + private string HTMLUnicodeToString(string htmluni) + { + StringBuilder retValue = new StringBuilder(); + + for(int i = 0; i < htmluni.Length; i++) + { + switch (htmluni[i]) + { + // beginning tag of the unicode + case '&': + { + int startOff = i + 2; + // sear closing tag of the unicode + int endOff = htmluni.IndexOf(';', startOff); + // get and parse value inbetween + string sub = htmluni.Substring(startOff, endOff - startOff); + int cVal = int.Parse(sub); + + switch (cVal) + { + // if the unicode value is 128 (€) + case 128: + retValue.Append('€'); + break; + + default: + retValue.Append((char)cVal); + break; + } + + // set the current index to the end of the unicode tag + i = endOff; + } + break; + case '<': + { + // ignoring <..> html tags + i = htmluni.IndexOf('>', i); + } + break; + case '\t': + // removing tabs + break; + + default: + { + // adding other characters to the return string + retValue.Append(htmluni[i]); + } + break; + } + } + + return retValue.ToString(); + } + + /// + /// Comparing function for Datetime-Timestamps. + /// (currently unused) + /// + /// first item + /// secound item + /// + public static int CompareTimeStamp(RSSModel item1, RSSModel item2) + { + if (item1.DTTimestamp > item2.DTTimestamp) + return -1; + else + return 0; + } + } +} diff --git a/CampusAppWP8/CampusAppWP8/model/events_news/RSSViewModel.cs b/CampusAppWP8/CampusAppWP8/model/events_news/RSSViewModel.cs index 9df6b26f..3293adba 100644 --- a/CampusAppWP8/CampusAppWP8/model/events_news/RSSViewModel.cs +++ b/CampusAppWP8/CampusAppWP8/model/events_news/RSSViewModel.cs @@ -1,51 +1,51 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Xml.Serialization; - -namespace CampusAppWP8.model.events_news -{ - /// - /// ViewModel of the rss feed, containing the feed/channel object. - /// - [XmlRoot("root")] - public class RSSViewModel : BaseViewModel - { - /// - /// channel list for the rss feeds. - /// - [XmlArray("rss")] - [XmlArrayItem("channel")] - public ObservableCollection channel { get; set; } - - /// - /// Default constructor. - /// - public RSSViewModel() - { - this.channel = new ObservableCollection(); - } - - /// - /// Set/Get the channel list. - /// - public ObservableCollection Channel - { - get - { - return this.channel; - } - set - { - if (value != this.channel) - { - this.channel = value; - NotifyPropertyChanged("channel"); - } - } - } - } -} +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Xml.Serialization; + +namespace CampusAppWP8.model.events_news +{ + /// + /// ViewModel of the rss feed, containing the feed/channel object. + /// + [XmlRoot("root")] + public class RSSViewModel : BaseViewModel + { + /// + /// channel list for the rss feeds. + /// + [XmlArray("rss")] + [XmlArrayItem("channel")] + public ObservableCollection channel { get; set; } + + /// + /// Default constructor. + /// + public RSSViewModel() + { + this.channel = new ObservableCollection(); + } + + /// + /// Set/Get the channel list. + /// + public ObservableCollection Channel + { + get + { + return this.channel; + } + set + { + if (value != this.channel) + { + this.channel = value; + NotifyPropertyChanged("channel"); + } + } + } + } +} diff --git a/CampusAppWP8/CampusAppWP8/pages/departments/DepartmentFeed.cs b/CampusAppWP8/CampusAppWP8/pages/departments/DepartmentFeed.cs index 4bca4589..94bcbf5b 100644 --- a/CampusAppWP8/CampusAppWP8/pages/departments/DepartmentFeed.cs +++ b/CampusAppWP8/CampusAppWP8/pages/departments/DepartmentFeed.cs @@ -1,19 +1,19 @@ -using CampusAppWP8.model.departments; -using CampusAppWP8.utility; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace CampusAppWP8.pages.departments -{ - class DepartmentFeed : XMLFeed - { - public DepartmentFeed() : base(URLList.DepartmentFeedURL, "DepartmentFeed.xml") - { - - } - public System.Collections.ObjectModel.ObservableCollection _faculties { get; set; } - } -} +using CampusAppWP8.model.departments; +using CampusAppWP8.utility; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CampusAppWP8.pages.departments +{ + class DepartmentFeed : XMLFeed + { + public DepartmentFeed() : base(URLList.DepartmentFeedURL, "DepartmentFeed.xml") + { + + } + public System.Collections.ObjectModel.ObservableCollection _faculties { get; set; } + } +} diff --git a/CampusAppWP8/CampusAppWP8/pages/departments/DepartmentPage.xaml b/CampusAppWP8/CampusAppWP8/pages/departments/DepartmentPage.xaml index ccf1ad55..a0387e3e 100644 --- a/CampusAppWP8/CampusAppWP8/pages/departments/DepartmentPage.xaml +++ b/CampusAppWP8/CampusAppWP8/pages/departments/DepartmentPage.xaml @@ -1,62 +1,62 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/pages/departments/DepartmentPage.xaml.cs b/CampusAppWP8/CampusAppWP8/pages/departments/DepartmentPage.xaml.cs index 06c25d35..44bda04e 100644 --- a/CampusAppWP8/CampusAppWP8/pages/departments/DepartmentPage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/pages/departments/DepartmentPage.xaml.cs @@ -1,133 +1,133 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Navigation; -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; -using CampusAppWP8.utility; -using CampusAppWP8.model.departments; -using Microsoft.Phone.Tasks; - - -namespace CampusAppWP8.pages.departments -{ - /// - /// Pivot page with list of the chairs of the facultis. - /// - public partial class DepartmentPage : PhoneApplicationPage - { - /// - /// Stores the last visible department panel. - /// - private UIElement lastVisibleUIElem = null; - /// - /// department/chair feed object, storing the model and data. - /// - private DepartmentFeed feed { get; set; } - - /// - /// Default constructor. - /// - public DepartmentPage() - { - InitializeComponent(); - // init feed object - this.feed = new DepartmentFeed(); - } - - /// - /// On naviagtion to this page. - /// Init the feed loading. - /// - /// event args - protected override void OnNavigatedTo(NavigationEventArgs e) - { - base.OnNavigatedTo(e); - - this.feed.EventHandler.FeedIsReadyEvent += new FeedEventHandler.FeedReadyHandler(SetupDepartmentPivot); - this.feed.LoadFeed(); - } - - /// - /// Called after the feeds are loaded. - /// Set the pivotitem source of this page. - /// - private void SetupDepartmentPivot() - { - DepartmentPivot.ItemsSource = feed.Model._faculties; - } - - /// - /// On orientation changed. - /// - /// unused - /// unused - private void PhoneApplicationPage_OrientationChanged(object sender, OrientationChangedEventArgs e) - { - } - - /// - /// Called at clicking on the department headline buttons. - /// Collapses all visible department panels and open (set to visible) - /// the clicked department list. - /// - /// clicked department button - /// unused - private void DepartmentBtn_Click(object sender, RoutedEventArgs e) - { - // if the sender was a button - if(sender is Button) - { - Button btn = sender as Button; - - // if the parent is a stackpanel - if(btn.Parent is StackPanel) - { - StackPanel pan = (StackPanel)btn.Parent; - - // if there is a child after the clicked button in the parent panel - if ((pan.Children.Count() > 1) && (pan.Children[1] != null)) - { - // if the clicked department wasn't the one clicked before - if (pan.Children[1] != this.lastVisibleUIElem) - { - // collapse the last visible chair list - if (this.lastVisibleUIElem != null) - this.lastVisibleUIElem.Visibility = Visibility.Collapsed; - - // open the choosen chair list - pan.Children[1].Visibility = Visibility.Visible; - this.lastVisibleUIElem = pan.Children[1]; - } - } - } - } - } - - /// - /// On clicking a chair textbolock. - /// Open the browser with the url of the chair. - /// - /// clicked chair textblock - /// - private void ChairTB_Click(object sender, RoutedEventArgs e) - { - if (sender is FrameworkElement) - { - FrameworkElement btn = sender as FrameworkElement; - - // if the chair has a url in the tag element - if ((btn.Tag != null) && ((btn.Tag as string).Length > 0)) - { - // open browser with the url - WebBrowserTask task = new WebBrowserTask(); - task.Uri = new Uri(btn.Tag.ToString(), UriKind.Absolute); - task.Show(); - } - } - } - } +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Navigation; +using Microsoft.Phone.Controls; +using Microsoft.Phone.Shell; +using CampusAppWP8.utility; +using CampusAppWP8.model.departments; +using Microsoft.Phone.Tasks; + + +namespace CampusAppWP8.pages.departments +{ + /// + /// Pivot page with list of the chairs of the facultis. + /// + public partial class DepartmentPage : PhoneApplicationPage + { + /// + /// Stores the last visible department panel. + /// + private UIElement lastVisibleUIElem = null; + /// + /// department/chair feed object, storing the model and data. + /// + private DepartmentFeed feed { get; set; } + + /// + /// Default constructor. + /// + public DepartmentPage() + { + InitializeComponent(); + // init feed object + this.feed = new DepartmentFeed(); + } + + /// + /// On naviagtion to this page. + /// Init the feed loading. + /// + /// event args + protected override void OnNavigatedTo(NavigationEventArgs e) + { + base.OnNavigatedTo(e); + + this.feed.EventHandler.FeedIsReadyEvent += new FeedEventHandler.FeedReadyHandler(SetupDepartmentPivot); + this.feed.LoadFeed(); + } + + /// + /// Called after the feeds are loaded. + /// Set the pivotitem source of this page. + /// + private void SetupDepartmentPivot() + { + DepartmentPivot.ItemsSource = feed.Model._faculties; + } + + /// + /// On orientation changed. + /// + /// unused + /// unused + private void PhoneApplicationPage_OrientationChanged(object sender, OrientationChangedEventArgs e) + { + } + + /// + /// Called at clicking on the department headline buttons. + /// Collapses all visible department panels and open (set to visible) + /// the clicked department list. + /// + /// clicked department button + /// unused + private void DepartmentBtn_Click(object sender, RoutedEventArgs e) + { + // if the sender was a button + if(sender is Button) + { + Button btn = sender as Button; + + // if the parent is a stackpanel + if(btn.Parent is StackPanel) + { + StackPanel pan = (StackPanel)btn.Parent; + + // if there is a child after the clicked button in the parent panel + if ((pan.Children.Count() > 1) && (pan.Children[1] != null)) + { + // if the clicked department wasn't the one clicked before + if (pan.Children[1] != this.lastVisibleUIElem) + { + // collapse the last visible chair list + if (this.lastVisibleUIElem != null) + this.lastVisibleUIElem.Visibility = Visibility.Collapsed; + + // open the choosen chair list + pan.Children[1].Visibility = Visibility.Visible; + this.lastVisibleUIElem = pan.Children[1]; + } + } + } + } + } + + /// + /// On clicking a chair textbolock. + /// Open the browser with the url of the chair. + /// + /// clicked chair textblock + /// + private void ChairTB_Click(object sender, RoutedEventArgs e) + { + if (sender is FrameworkElement) + { + FrameworkElement btn = sender as FrameworkElement; + + // if the chair has a url in the tag element + if ((btn.Tag != null) && ((btn.Tag as string).Length > 0)) + { + // open browser with the url + WebBrowserTask task = new WebBrowserTask(); + task.Uri = new Uri(btn.Tag.ToString(), UriKind.Absolute); + task.Show(); + } + } + } + } } \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/pages/events/EventFeed.cs b/CampusAppWP8/CampusAppWP8/pages/events/EventFeed.cs index 6d8261f6..219be534 100644 --- a/CampusAppWP8/CampusAppWP8/pages/events/EventFeed.cs +++ b/CampusAppWP8/CampusAppWP8/pages/events/EventFeed.cs @@ -1,24 +1,24 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -using CampusAppWP8.model.events_news; -using CampusAppWP8.utility; - -namespace CampusAppWP8.pages.events -{ - /// - /// Event Feed. - /// - public class EventFeed : XMLFeed - { - /// - /// Default constructor. - /// - public EventFeed() : base(URLList.EventsFeedURL, "EventFeed.xml") - { - } - } -} +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +using CampusAppWP8.model.events_news; +using CampusAppWP8.utility; + +namespace CampusAppWP8.pages.events +{ + /// + /// Event Feed. + /// + public class EventFeed : XMLFeed + { + /// + /// Default constructor. + /// + public EventFeed() : base(URLList.EventsFeedURL, "EventFeed.xml") + { + } + } +} diff --git a/CampusAppWP8/CampusAppWP8/pages/events/EventIndexPage.xaml b/CampusAppWP8/CampusAppWP8/pages/events/EventIndexPage.xaml index 0bb5ff43..4657a3d4 100644 --- a/CampusAppWP8/CampusAppWP8/pages/events/EventIndexPage.xaml +++ b/CampusAppWP8/CampusAppWP8/pages/events/EventIndexPage.xaml @@ -1,32 +1,32 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/pages/events/EventIndexPage.xaml.cs b/CampusAppWP8/CampusAppWP8/pages/events/EventIndexPage.xaml.cs index 95bded50..f70d6f8e 100644 --- a/CampusAppWP8/CampusAppWP8/pages/events/EventIndexPage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/pages/events/EventIndexPage.xaml.cs @@ -1,107 +1,107 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Navigation; -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; - -using CampusAppWP8.model.events_news; -using CampusAppWP8.utility; -using CampusAppWP8.Resources; -using System.Collections.ObjectModel; - -namespace CampusAppWP8.pages.events -{ - /// - /// Overview page of all events. - /// - public partial class EventIndexPage : PhoneApplicationPage - { - /// - /// Event Feed object, which contains the rss models and data. - /// - public static EventFeed eventFeed { get; set; } - - /// - /// Default constructor. - /// - public EventIndexPage() - { - InitializeComponent(); - EventIndexPage.eventFeed = new EventFeed(); - } - - /// - /// On navigation to this page, creates a FeedEventHandler and load the rss feed data. - /// - /// event args - protected override void OnNavigatedTo(NavigationEventArgs e) - { - base.OnNavigatedTo(e); - - // Set handler and load the fees informations. - EventIndexPage.eventFeed.EventHandler.FeedIsReadyEvent += new FeedEventHandler.FeedReadyHandler(SetupEventPageList); - EventIndexPage.eventFeed.LoadFeed(); - } - - /// - /// Is called after the rss feeds are loaded into the eventFeed model. - /// If there was no feed informations set to the ui, the feed list - /// will be sorted by timestamp and the buttons will be created. - /// - private void SetupEventPageList() - { - if ((EventIndexPage.eventFeed.Model != null) - && (EventIndexPage.eventFeed.Model.Channel != null) - && (EventIndexPage.eventFeed.Model.Channel.Count() >= 1) - && (this.ButtonPanel.Items.Count() == 0)) - { - // Sort the list of rssfeeds. - IEnumerable tempList = EventIndexPage.eventFeed.Model.Channel[0].item.OrderByDescending(e => e.DTTimestamp); - EventIndexPage.eventFeed.Model.Channel[0].item = new ObservableCollection(tempList); - - // Create the buttons for the fees selection and add it to the buttonpanel. - for (int i = 0; i < EventIndexPage.eventFeed.Model.Channel[0].item.Count(); i++) - { - Button tempBtn = new Button(); - tempBtn.Name = "EventRowAppButton"; - tempBtn.Content = EventIndexPage.eventFeed.Model.Channel[0].item[i].Title; - tempBtn.VerticalContentAlignment = VerticalAlignment.Stretch; - tempBtn.HorizontalContentAlignment = HorizontalAlignment.Stretch; - tempBtn.BorderThickness = new Thickness(0.0); - tempBtn.Padding = new Thickness(0.0); - tempBtn.Click += EventRowAppButton_Click; - tempBtn.Tag = i; - - this.ButtonPanel.Items.Add(tempBtn); - } - } - } - - /// - /// Return the eventFeed object. - /// - static public EventFeed GetEventFeed - { - get { return EventIndexPage.eventFeed; } - set { } - } - - /// - /// Is called on clicking on a feed button. - /// Navigates to the event pivot page with the information of the - /// selected feed index. - /// - /// pressed button object - /// event args - private void EventRowAppButton_Click(object sender, RoutedEventArgs e) - { - FrameworkElement tempElem = sender as FrameworkElement; - - NavigationService.Navigate(new Uri("/pages/events/EventPage.xaml?pivotindex=" + tempElem.Tag, UriKind.Relative)); - } - } +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Navigation; +using Microsoft.Phone.Controls; +using Microsoft.Phone.Shell; + +using CampusAppWP8.model.events_news; +using CampusAppWP8.utility; +using CampusAppWP8.Resources; +using System.Collections.ObjectModel; + +namespace CampusAppWP8.pages.events +{ + /// + /// Overview page of all events. + /// + public partial class EventIndexPage : PhoneApplicationPage + { + /// + /// Event Feed object, which contains the rss models and data. + /// + public static EventFeed eventFeed { get; set; } + + /// + /// Default constructor. + /// + public EventIndexPage() + { + InitializeComponent(); + EventIndexPage.eventFeed = new EventFeed(); + } + + /// + /// On navigation to this page, creates a FeedEventHandler and load the rss feed data. + /// + /// event args + protected override void OnNavigatedTo(NavigationEventArgs e) + { + base.OnNavigatedTo(e); + + // Set handler and load the fees informations. + EventIndexPage.eventFeed.EventHandler.FeedIsReadyEvent += new FeedEventHandler.FeedReadyHandler(SetupEventPageList); + EventIndexPage.eventFeed.LoadFeed(); + } + + /// + /// Is called after the rss feeds are loaded into the eventFeed model. + /// If there was no feed informations set to the ui, the feed list + /// will be sorted by timestamp and the buttons will be created. + /// + private void SetupEventPageList() + { + if ((EventIndexPage.eventFeed.Model != null) + && (EventIndexPage.eventFeed.Model.Channel != null) + && (EventIndexPage.eventFeed.Model.Channel.Count() >= 1) + && (this.ButtonPanel.Items.Count() == 0)) + { + // Sort the list of rssfeeds. + IEnumerable tempList = EventIndexPage.eventFeed.Model.Channel[0].item.OrderByDescending(e => e.DTTimestamp); + EventIndexPage.eventFeed.Model.Channel[0].item = new ObservableCollection(tempList); + + // Create the buttons for the fees selection and add it to the buttonpanel. + for (int i = 0; i < EventIndexPage.eventFeed.Model.Channel[0].item.Count(); i++) + { + Button tempBtn = new Button(); + tempBtn.Name = "EventRowAppButton"; + tempBtn.Content = EventIndexPage.eventFeed.Model.Channel[0].item[i].Title; + tempBtn.VerticalContentAlignment = VerticalAlignment.Stretch; + tempBtn.HorizontalContentAlignment = HorizontalAlignment.Stretch; + tempBtn.BorderThickness = new Thickness(0.0); + tempBtn.Padding = new Thickness(0.0); + tempBtn.Click += EventRowAppButton_Click; + tempBtn.Tag = i; + + this.ButtonPanel.Items.Add(tempBtn); + } + } + } + + /// + /// Return the eventFeed object. + /// + static public EventFeed GetEventFeed + { + get { return EventIndexPage.eventFeed; } + set { } + } + + /// + /// Is called on clicking on a feed button. + /// Navigates to the event pivot page with the information of the + /// selected feed index. + /// + /// pressed button object + /// event args + private void EventRowAppButton_Click(object sender, RoutedEventArgs e) + { + FrameworkElement tempElem = sender as FrameworkElement; + + NavigationService.Navigate(new Uri("/pages/events/EventPage.xaml?pivotindex=" + tempElem.Tag, UriKind.Relative)); + } + } } \ No newline at end of file diff --git a/CampusAppWP8/CampusAppWP8/pages/events/EventPage.xaml b/CampusAppWP8/CampusAppWP8/pages/events/EventPage.xaml index 24b2b652..1c8224ce 100644 --- a/CampusAppWP8/CampusAppWP8/pages/events/EventPage.xaml +++ b/CampusAppWP8/CampusAppWP8/pages/events/EventPage.xaml @@ -1,50 +1,50 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - -