diff --git a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj
index d2b4704d..69a8462f 100644
--- a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj
+++ b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj
@@ -245,6 +245,7 @@
+
Code
diff --git a/CampusAppWP8/CampusAppWP8/Model/Mensa/MealModel.cs b/CampusAppWP8/CampusAppWP8/Model/Mensa/MealModel.cs
index 4f59203d..1ff1d49a 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Mensa/MealModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Mensa/MealModel.cs
@@ -231,31 +231,31 @@ namespace CampusAppWP8.Model.Mensa
switch (this.iconName)
{
case MealModel.MealIconNameVegetarian:
- this.iconUrl = Icons.Info;
+ this.iconUrl = Icons.Vegetarian;
break;
case MealModel.MealIconNameFree:
- this.iconUrl = Icons.Info;
+ this.iconUrl = Icons.Free;
break;
case MealModel.MealIconNameCowPig:
- this.iconUrl = Icons.Info;
+ this.iconUrl = Icons.CowPig;
break;
case MealModel.MealIconNameFish:
- this.iconUrl = Icons.Info;
+ this.iconUrl = Icons.Fish;
break;
case MealModel.MealIconNameFowl:
- this.iconUrl = Icons.Info;
+ this.iconUrl = Icons.Fowl;
break;
case MealModel.MealIconNameLamb:
- this.iconUrl = Icons.Info;
+ this.iconUrl = Icons.Lamb;
break;
case MealModel.MealIconNamePig:
- this.iconUrl = Icons.Info;
+ this.iconUrl = Icons.Pig;
break;
case MealModel.MealIconNameWild:
- this.iconUrl = Icons.Info;
+ this.iconUrl = Icons.Wild;
break;
case MealModel.MealIconNameCow:
- this.iconUrl = Icons.Info;
+ this.iconUrl = Icons.Cow;
break;
default:
this.iconUrl = string.Empty;
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Departments/DepartmentIndexPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Departments/DepartmentIndexPage.xaml.cs
index 13d1848c..7d8ee8da 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Departments/DepartmentIndexPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Departments/DepartmentIndexPage.xaml.cs
@@ -13,6 +13,7 @@ namespace CampusAppWP8.Pages.Departments
using System.Windows.Navigation;
using CampusAppWP8.Feed.Departments;
using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
///
@@ -44,6 +45,8 @@ namespace CampusAppWP8.Pages.Departments
}
DepartmentIndexPage.feed.onLoaded += new DepartmentFeed.OnLoaded(this.SetupFacultyList);
+ DepartmentIndexPage.feed.onFailedWeb += new DepartmentFeed.OnFailed(this.FeedIsFailWeb);
+ DepartmentIndexPage.feed.onFailedFile += new DepartmentFeed.OnFailed(this.FeedIsFailFile);
DepartmentIndexPage.feed.LoadData();
if (DepartmentIndexPage.favorite == null)
@@ -52,6 +55,7 @@ namespace CampusAppWP8.Pages.Departments
}
DepartmentIndexPage.favorite.onLoaded += new DepartmentFavoriteFeed.OnLoaded(this.CheckFavoriteFeed);
+ DepartmentIndexPage.favorite.onFailedFile += new DepartmentFavoriteFeed.OnFailed(this.FeedIsFailFile);
DepartmentIndexPage.favorite.LoadData();
}
@@ -205,5 +209,22 @@ namespace CampusAppWP8.Pages.Departments
{
DepartmentIndexPage.feed.ForceWebUpdate();
}
+
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void FeedIsFailWeb()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
+ DepartmentIndexPage.feed.ForceReadFile();
+ }
+
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void FeedIsFailFile()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
+ }
}
}
\ 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 c215d227..d8e1bc11 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Events/EventIndexPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Events/EventIndexPage.xaml.cs
@@ -8,9 +8,11 @@
namespace CampusAppWP8.Pages.Events
{
using System;
+ using System.Windows;
using System.Windows.Navigation;
using CampusAppWP8.Feed.Events;
using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
@@ -43,6 +45,8 @@ namespace CampusAppWP8.Pages.Events
}
EventIndexPage.eventFeed.onLoaded += new EventFeed.OnLoaded(this.SetupEventPageList);
+ EventIndexPage.eventFeed.onFailedWeb += new EventFeed.OnFailed(this.FeedIsFailWeb);
+ EventIndexPage.eventFeed.onFailedFile += new EventFeed.OnFailed(this.FeedIsFailFile);
EventIndexPage.eventFeed.LoadData();
}
@@ -103,5 +107,22 @@ namespace CampusAppWP8.Pages.Events
{
EventIndexPage.eventFeed.ForceWebUpdate();
}
+
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void FeedIsFailWeb()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
+ EventIndexPage.eventFeed.ForceReadFile();
+ }
+
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void FeedIsFailFile()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
+ }
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Lecture/LecturePage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Lecture/LecturePage.xaml.cs
index 53f8cf73..27dd9d1b 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Lecture/LecturePage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Lecture/LecturePage.xaml.cs
@@ -15,6 +15,7 @@ namespace CampusAppWP8.Pages.Lecture
using CampusAppWP8.Model.Lecture;
using CampusAppWP8.Model.Utility;
using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
///
@@ -166,6 +167,7 @@ namespace CampusAppWP8.Pages.Lecture
{
this.api = new LectureApi();
this.api.onLoaded += new LectureApi.OnLoaded(this.ApiIsReady);
+ this.api.onFailed += new LectureApi.OnFailed(this.ApiIsFail);
this.ProgressBar.Visibility = System.Windows.Visibility.Visible;
List parameterList = this.CreateUrlParameter();
this.api.SetUriParams(parameterList);
@@ -239,6 +241,15 @@ namespace CampusAppWP8.Pages.Lecture
this.To.ItemsSource = this.pageModel.ToNumberList.List;
}
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void ApiIsFail()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoad);
+ this.ProgressBar.Visibility = Visibility.Collapsed;
+ }
+
#endregion
#endregion
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs
index d62845ef..d445116b 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs
@@ -8,8 +8,11 @@
namespace CampusAppWP8.Pages.Links
{
using System;
+ using System.Windows;
using System.Windows.Navigation;
using CampusAppWP8.Feed.Link;
+ using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
///
@@ -103,6 +106,8 @@ namespace CampusAppWP8.Pages.Links
{
this.commonLinkFeed = new CommonLinkFeed();
this.commonLinkFeed.onLoaded += new CommonLinkFeed.OnLoaded(this.CommonLinkFeedIsReady);
+ this.commonLinkFeed.onFailedWeb += new CommonLinkFeed.OnFailed(this.CommonLinkFeedIsFailWeb);
+ this.commonLinkFeed.onFailedFile += new CommonLinkFeed.OnFailed(this.FeedIsFailFile);
}
///
@@ -112,6 +117,8 @@ namespace CampusAppWP8.Pages.Links
{
this.clubLinkFeed = new ClubLinkFeed();
this.clubLinkFeed.onLoaded += new ClubLinkFeed.OnLoaded(this.ClubLinkFeedIsReady);
+ this.clubLinkFeed.onFailedWeb += new ClubLinkFeed.OnFailed(this.ClubLinkFeedIsFailWeb);
+ this.clubLinkFeed.onFailedFile += new ClubLinkFeed.OnFailed(this.FeedIsFailFile);
}
///
@@ -120,12 +127,7 @@ namespace CampusAppWP8.Pages.Links
private void CommonLinkFeedIsReady()
{
this.SetupCommonPivot();
- this.loadingFeeds--;
-
- if (this.loadingFeeds < 1)
- {
- this.ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
- }
+ this.SetupProgressBarVisibilityCollapsed();
}
///
@@ -134,11 +136,7 @@ namespace CampusAppWP8.Pages.Links
private void ClubLinkFeedIsReady()
{
this.SetupClubPivot();
- this.loadingFeeds--;
- if (this.loadingFeeds < 1)
- {
- this.ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
- }
+ this.SetupProgressBarVisibilityCollapsed();
}
///
@@ -170,6 +168,45 @@ namespace CampusAppWP8.Pages.Links
this.commonLinkFeed.ForceWebUpdate();
this.clubLinkFeed.ForceWebUpdate();
}
+
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void ClubLinkFeedIsFailWeb()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
+ this.clubLinkFeed.ForceReadFile();
+ }
+
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void CommonLinkFeedIsFailWeb()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
+ this.commonLinkFeed.ForceReadFile();
+ }
+
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void FeedIsFailFile()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
+ this.SetupProgressBarVisibilityCollapsed();
+ }
+
+ ///
+ /// Method set the visibility of the ProgressBar to Collapsed if loadingFeeds less then 1
+ ///
+ private void SetupProgressBarVisibilityCollapsed()
+ {
+ this.loadingFeeds--;
+ if (this.loadingFeeds < 1)
+ {
+ this.ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
+ }
+ }
#endregion
#endregion
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs
index a09237b8..234d15b4 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs
@@ -8,9 +8,12 @@
namespace CampusAppWP8.Pages.Mensa
{
using System;
+ using System.Windows;
using System.Windows.Navigation;
using CampusAppWP8.Feed.GeoApi;
using CampusAppWP8.Feed.Mensa;
+ using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
///
@@ -92,13 +95,22 @@ namespace CampusAppWP8.Pages.Mensa
#region private
///
- /// Method will be execute if the SPSAPI is ready
+ /// Method will be execute if the SPSAPI is ready
///
private void SpsApiIsReady()
{
this.InitializeFeed(this.campusApi.GetCampus());
}
+ ///
+ /// Method will be execute if the SPSAPI is failed
+ ///
+ private void SpsApiIsFail()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorCampusLoc);
+ this.InitializeFeed(Settings.UserProfil.DefaultCampus);
+ }
+
///
/// Method determine campus and load data from correct feed
///
@@ -106,6 +118,7 @@ namespace CampusAppWP8.Pages.Mensa
{
this.campusApi = new CampusSpsApi();
this.campusApi.onLoaded += new SpsApi.OnLoaded(this.SpsApiIsReady);
+ this.campusApi.onFailed += new SpsApi.OnFailed(this.SpsApiIsFail);
this.campusApi.SetupCurrentCampusRequest();
this.campusApi.LoadData();
}
@@ -118,6 +131,8 @@ namespace CampusAppWP8.Pages.Mensa
{
this.feed = MensaFeed.CreateCampusMensaFeed(campus);
this.feed.onLoaded += new MensaFeed.OnLoaded(this.FeedIsReady);
+ this.feed.onFailedWeb += new MensaFeed.OnFailed(this.FeedIsFailWeb);
+ this.feed.onFailedFile += new MensaFeed.OnFailed(this.FeedIsFailFile);
this.CalcSelectedIndex();
if (this.forceLoad)
@@ -162,6 +177,24 @@ namespace CampusAppWP8.Pages.Mensa
this.ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
}
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void FeedIsFailWeb()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
+ this.feed.ForceReadFile();
+ }
+
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void FeedIsFailFile()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
+ this.ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
+ }
+
///
/// Method set ItemSource and SelectedIndex for the pivot
///
diff --git a/CampusAppWP8/CampusAppWP8/Pages/News/NewsIndexPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/News/NewsIndexPage.xaml.cs
index 12232368..b5cb6933 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/News/NewsIndexPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/News/NewsIndexPage.xaml.cs
@@ -8,9 +8,11 @@
namespace CampusAppWP8.Pages.News
{
using System;
+ using System.Windows;
using System.Windows.Navigation;
using CampusAppWP8.Feed.News;
using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
@@ -43,6 +45,8 @@ namespace CampusAppWP8.Pages.News
}
NewsIndexPage.newsFeed.onLoaded += new NewsFeed.OnLoaded(this.SetupNewsPageList);
+ NewsIndexPage.newsFeed.onFailedWeb += new NewsFeed.OnFailed(this.FeedIsFailWeb);
+ NewsIndexPage.newsFeed.onFailedFile += new NewsFeed.OnFailed(this.FeedIsFailFile);
NewsIndexPage.newsFeed.LoadData();
}
@@ -103,5 +107,22 @@ namespace CampusAppWP8.Pages.News
{
NewsIndexPage.newsFeed.ForceWebUpdate();
}
+
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void FeedIsFailWeb()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
+ NewsIndexPage.newsFeed.ForceReadFile();
+ }
+
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void FeedIsFailFile()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
+ }
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Openinghours/OpeninghoursPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Openinghours/OpeninghoursPage.xaml.cs
index 3d4d58c3..f10ebff7 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Openinghours/OpeninghoursPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Openinghours/OpeninghoursPage.xaml.cs
@@ -8,10 +8,12 @@
namespace CampusAppWP8.Pages.Openinghours
{
using System;
+ using System.Windows;
using System.Windows.Navigation;
using CampusAppWP8.Feed.Openinghours;
using CampusAppWP8.Model.Openinghours;
using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
///
@@ -46,6 +48,8 @@ namespace CampusAppWP8.Pages.Openinghours
{
this.feed = new OpeninghoursFeed();
this.feed.onLoaded += new OpeninghoursFeed.OnLoaded(this.FeedIsReady);
+ this.feed.onFailedWeb += new OpeninghoursFeed.OnFailed(this.FeedIsFailWeb);
+ this.feed.onFailedFile += new OpeninghoursFeed.OnFailed(this.FeedIsFailFile);
this.feed.LoadData();
}
@@ -130,6 +134,23 @@ namespace CampusAppWP8.Pages.Openinghours
this.feed.ForceWebUpdate();
}
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void FeedIsFailWeb()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
+ this.feed.ForceReadFile();
+ }
+
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void FeedIsFailFile()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
+ }
+
// private
#endregion
diff --git a/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs
index 40156ef7..6c3d516d 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs
@@ -8,14 +8,15 @@
namespace CampusAppWP8.Pages
{
using System;
+ using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using CampusAppWP8.Resources;
using CampusAppWP8.Utility;
+ using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
- using System.Threading;
///
/// Class for the StartPage
@@ -155,7 +156,7 @@ namespace CampusAppWP8.Pages
///
private void GeoWatchOptIN()
{
- MessageBoxResult result = MessageBox.Show(AppResources.GeoWatch_OptInText, AppResources.GeoWatch_OptInHeader, MessageBoxButton.OKCancel);
+ MessageBoxResult result = MessageBoxes.ShowGoeWatchOptInBox();
if (result == MessageBoxResult.OK)
{
diff --git a/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs
index ee716951..86e98e14 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs
@@ -7,10 +7,13 @@
//----------------------------------------------------------------------
namespace CampusAppWP8.Pages.StudentCouncil
{
- using System.Windows.Navigation;
- using Microsoft.Phone.Controls;
- using CampusAppWP8.Feed.StudentCouncil;
using System;
+ using System.Windows;
+ using System.Windows.Navigation;
+ using CampusAppWP8.Feed.StudentCouncil;
+ using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility.Lui.MessageBoxes;
+ using Microsoft.Phone.Controls;
///
/// Class for the StudentCouncilPage
@@ -78,6 +81,8 @@ namespace CampusAppWP8.Pages.StudentCouncil
{
this.feed = new StudentCouncilFeed();
this.feed.onLoaded += new StudentCouncilFeed.OnLoaded(this.FeedIsReady);
+ this.feed.onFailedWeb += new StudentCouncilFeed.OnFailed(this.FeedIsFailWeb);
+ this.feed.onFailedFile += new StudentCouncilFeed.OnFailed(this.FeedIsFailFile);
}
///
@@ -109,6 +114,24 @@ namespace CampusAppWP8.Pages.StudentCouncil
this.feed.ForceWebUpdate();
}
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void FeedIsFailWeb()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
+ this.feed.ForceReadFile();
+ }
+
+ ///
+ /// Method will be execute if the feed is failed
+ ///
+ private void FeedIsFailFile()
+ {
+ MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
+ this.ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
+ }
+
#endregion
#endregion
diff --git a/CampusAppWP8/CampusAppWP8/Resources/AppResources.Designer.cs b/CampusAppWP8/CampusAppWP8/Resources/AppResources.Designer.cs
index 2bfddef8..b8366f53 100644
--- a/CampusAppWP8/CampusAppWP8/Resources/AppResources.Designer.cs
+++ b/CampusAppWP8/CampusAppWP8/Resources/AppResources.Designer.cs
@@ -240,24 +240,6 @@ namespace CampusAppWP8.Resources {
}
}
- ///
- /// Sucht eine lokalisierte Zeichenfolge, die Ortung ähnelt.
- ///
- public static string GeoWatch_OptInHeader {
- get {
- return ResourceManager.GetString("GeoWatch_OptInHeader", resourceCulture);
- }
- }
-
- ///
- /// Sucht eine lokalisierte Zeichenfolge, die Dürfen Positionsdaten enhoben und verwendet werden? ähnelt.
- ///
- public static string GeoWatch_OptInText {
- get {
- return ResourceManager.GetString("GeoWatch_OptInText", resourceCulture);
- }
- }
-
///
/// Sucht eine lokalisierte Zeichenfolge, die Hinweis ähnelt.
///
@@ -582,6 +564,69 @@ namespace CampusAppWP8.Resources {
}
}
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Der aktuelle Campus konnte nicht ermittelt werden. Es wird der im Profil festgelegten Campus verwendet. ähnelt.
+ ///
+ public static string MsgBox_ErrorCampusLoc {
+ get {
+ return ResourceManager.GetString("MsgBox_ErrorCampusLoc", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Fehler ähnelt.
+ ///
+ public static string MsgBox_ErrorHeader {
+ get {
+ return ResourceManager.GetString("MsgBox_ErrorHeader", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Beim Laden des Inhaltes ist ein Fehler aufgetreten ähnelt.
+ ///
+ public static string MsgBox_ErrorMainModelLoad {
+ get {
+ return ResourceManager.GetString("MsgBox_ErrorMainModelLoad", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Datei konnte nicht geladen werden ähnelt.
+ ///
+ public static string MsgBox_ErrorMainModelLoadFile {
+ get {
+ return ResourceManager.GetString("MsgBox_ErrorMainModelLoadFile", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Es konnte kein neuer Inhalt aus den Web geladen werden ähnelt.
+ ///
+ public static string MsgBox_ErrorMainModelLoadWeb {
+ get {
+ return ResourceManager.GetString("MsgBox_ErrorMainModelLoadWeb", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Ortung ähnelt.
+ ///
+ public static string MsgBox_GeoWatchOptInHeader {
+ get {
+ return ResourceManager.GetString("MsgBox_GeoWatchOptInHeader", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Dürfen Positionsdaten enhoben und verwendet werden? ähnelt.
+ ///
+ public static string MsgBox_GeoWatchOptInText {
+ get {
+ return ResourceManager.GetString("MsgBox_GeoWatchOptInText", resourceCulture);
+ }
+ }
+
///
/// Sucht eine lokalisierte Zeichenfolge, die News ähnelt.
///
diff --git a/CampusAppWP8/CampusAppWP8/Resources/AppResources.resx b/CampusAppWP8/CampusAppWP8/Resources/AppResources.resx
index 9a4b865f..b892c458 100644
--- a/CampusAppWP8/CampusAppWP8/Resources/AppResources.resx
+++ b/CampusAppWP8/CampusAppWP8/Resources/AppResources.resx
@@ -359,10 +359,10 @@
Suppe
-
+
Ortung
-
+
Dürfen Positionsdaten enhoben und verwendet werden?
@@ -392,4 +392,19 @@
Appeinstellungen
+
+ Der aktuelle Campus konnte nicht ermittelt werden. Es wird der im Profil festgelegten Campus verwendet.
+
+
+ Fehler
+
+
+ Beim Laden des Inhaltes ist ein Fehler aufgetreten
+
+
+ Datei konnte nicht geladen werden
+
+
+ Es konnte kein neuer Inhalt aus den Web geladen werden
+
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Utility/Lui/MessageBoxes/MessageBoxes.cs b/CampusAppWP8/CampusAppWP8/Utility/Lui/MessageBoxes/MessageBoxes.cs
new file mode 100644
index 00000000..f444fc12
--- /dev/null
+++ b/CampusAppWP8/CampusAppWP8/Utility/Lui/MessageBoxes/MessageBoxes.cs
@@ -0,0 +1,37 @@
+//-----------------------------------------------------------------------
+//
+// Company copyright tag.
+//
+// stubbfel
+// 15.08.2013
+//----------------------------------------------------------------------
+namespace CampusAppWP8.Utility.Lui.MessageBoxes
+{
+ using System.Windows;
+ using CampusAppWP8.Resources;
+
+ ///
+ /// Class creates some MessageBoxes
+ ///
+ public class MessageBoxes
+ {
+ ///
+ /// Method show the MessageBox for the GeoWatch-OptIn
+ ///
+ /// result of the UserInteraction
+ public static MessageBoxResult ShowGoeWatchOptInBox()
+ {
+ return MessageBox.Show(AppResources.MsgBox_GeoWatchOptInText, AppResources.MsgBox_GeoWatchOptInHeader, MessageBoxButton.OKCancel);
+ }
+
+ ///
+ /// Method show the MessageBox for the ErrorMessageBox
+ ///
+ /// custom text for the box
+ /// result of the UserInteraction
+ public static MessageBoxResult ShowMainModelErrorMessageBox(string text)
+ {
+ return MessageBox.Show(text, AppResources.MsgBox_ErrorHeader, MessageBoxButton.OK);
+ }
+ }
+}