diff --git a/CampusAppWP8/CampusAppWP8/Api/GeoApi/CampusSpsApi.cs b/CampusAppWP8/CampusAppWP8/Api/GeoApi/CampusSpsApi.cs
index b6a1eeaf..e6b79166 100644
--- a/CampusAppWP8/CampusAppWP8/Api/GeoApi/CampusSpsApi.cs
+++ b/CampusAppWP8/CampusAppWP8/Api/GeoApi/CampusSpsApi.cs
@@ -17,6 +17,8 @@ namespace CampusAppWP8.Api.GeoApi
///
public class CampusSpsApi : SpsApi
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -25,6 +27,10 @@ namespace CampusAppWP8.Api.GeoApi
{
}
+ #endregion
+
+ #region Method
+
///
/// Method set the UriParameter of a campusRequest for a given latitude and longitude
///
@@ -68,5 +74,7 @@ namespace CampusAppWP8.Api.GeoApi
return Settings.UserProfil.DefaultCampus;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Api/GeoApi/PisApi.cs b/CampusAppWP8/CampusAppWP8/Api/GeoApi/PisApi.cs
index c527c94e..2409d10a 100644
--- a/CampusAppWP8/CampusAppWP8/Api/GeoApi/PisApi.cs
+++ b/CampusAppWP8/CampusAppWP8/Api/GeoApi/PisApi.cs
@@ -18,17 +18,23 @@ namespace CampusAppWP8.Api.GeoApi
/// Stubbfel, 09.09.2013.
public class PisApi : XmlModel
{
+ #region Constructor
+
/// Initializes a new instance of the PisApi class.
/// Stubbfel, 09.09.2013.
public PisApi()
: base(ModelType.Feed, Constants.UrlPisService)
{
}
+
+ #endregion
+
+ #region Method
/// Sets up the information request.
/// Stubbfel, 09.09.2013.
/// List of pids.
- /// (Optional) list of names of the informations.
+ /// (Optional) list of names of the information.
public void SetupInformationRequest(List pidList, List infoNames = null)
{
string pidListStr = string.Empty;
@@ -52,5 +58,7 @@ namespace CampusAppWP8.Api.GeoApi
this.SetUriParams(parameterList);
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Api/GeoApi/PssApi.cs b/CampusAppWP8/CampusAppWP8/Api/GeoApi/PssApi.cs
index c90e157b..b6cb614e 100644
--- a/CampusAppWP8/CampusAppWP8/Api/GeoApi/PssApi.cs
+++ b/CampusAppWP8/CampusAppWP8/Api/GeoApi/PssApi.cs
@@ -18,12 +18,18 @@ namespace CampusAppWP8.Api.GeoApi
/// Stubbfel, 09.09.2013.
public class PssApi : XmlModel
{
+ #region Constructor
+
/// Initializes a new instance of the PssApi class.
/// Stubbfel, 09.09.2013.
public PssApi()
: base(ModelType.Feed, Constants.UrlPssService)
{
}
+
+ #endregion
+
+ #region Method
/// Sets up the service request.
/// Stubbfel, 09.09.2013.
@@ -52,5 +58,7 @@ namespace CampusAppWP8.Api.GeoApi
this.SetUriParams(parameterList);
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Api/GeoApi/SpsApi.cs b/CampusAppWP8/CampusAppWP8/Api/GeoApi/SpsApi.cs
index 217f192b..18d727f7 100644
--- a/CampusAppWP8/CampusAppWP8/Api/GeoApi/SpsApi.cs
+++ b/CampusAppWP8/CampusAppWP8/Api/GeoApi/SpsApi.cs
@@ -19,6 +19,8 @@ namespace CampusAppWP8.Api.GeoApi
///
public class SpsApi : XmlModel
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -27,6 +29,10 @@ namespace CampusAppWP8.Api.GeoApi
{
}
+ #endregion
+
+ #region Method
+
///
/// Method set the UriParameter of a placeRequest for a given latitude and longitude
///
@@ -56,5 +62,7 @@ namespace CampusAppWP8.Api.GeoApi
string log = App.LoadFromAppState(Constants.GeoWatch_CurrentPosition_Long);
this.SetupPlaceRequest(lat, log, domian);
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Api/Lecture/LectureApi.cs b/CampusAppWP8/CampusAppWP8/Api/Lecture/LectureApi.cs
index 96ce98a2..bf49bb08 100644
--- a/CampusAppWP8/CampusAppWP8/Api/Lecture/LectureApi.cs
+++ b/CampusAppWP8/CampusAppWP8/Api/Lecture/LectureApi.cs
@@ -19,6 +19,8 @@ namespace CampusAppWP8.Api.Lecture
///
public class LectureApi : XmlModel
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -27,5 +29,7 @@ namespace CampusAppWP8.Api.Lecture
{
this.ValidRootName = Constants.LectureXmlValidRootName;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Api/Person/PersonSearchApi.cs b/CampusAppWP8/CampusAppWP8/Api/Person/PersonSearchApi.cs
index fbc838e7..50ab4ef2 100644
--- a/CampusAppWP8/CampusAppWP8/Api/Person/PersonSearchApi.cs
+++ b/CampusAppWP8/CampusAppWP8/Api/Person/PersonSearchApi.cs
@@ -16,6 +16,8 @@ namespace CampusAppWP8.Api.Person
/// Stubbfel, 05.09.2013.
public class PersonSearchApi : XmlModel
{
+ #region Constructor
+
/// Initializes a new instance of the PersonSearchApi class.
/// Stubbfel, 05.09.2013.
public PersonSearchApi()
@@ -23,5 +25,7 @@ namespace CampusAppWP8.Api.Person
{
this.ValidRootName = Constants.PersonListValidRootName;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Const.cs b/CampusAppWP8/CampusAppWP8/Const.cs
index 57cfe428..8ef872af 100644
--- a/CampusAppWP8/CampusAppWP8/Const.cs
+++ b/CampusAppWP8/CampusAppWP8/Const.cs
@@ -14,11 +14,17 @@ namespace CampusAppWP8
///
public class Const
{
+ #region Member
+
///
/// Resource object.
///
private static Constants constantResources = new Constants();
+ #endregion
+
+ #region Property
+
///
/// Gets the resource object.
///
@@ -29,5 +35,7 @@ namespace CampusAppWP8
return constantResources;
}
}
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Feed/Departments/DepartmentFeed.cs b/CampusAppWP8/CampusAppWP8/Feed/Departments/DepartmentFeed.cs
index 2a2ecf85..40733f3a 100644
--- a/CampusAppWP8/CampusAppWP8/Feed/Departments/DepartmentFeed.cs
+++ b/CampusAppWP8/CampusAppWP8/Feed/Departments/DepartmentFeed.cs
@@ -43,8 +43,6 @@ namespace CampusAppWP8.Feed.Departments
#region Method
- #region Protected
-
///
/// Method implement CheckIsModelUpToDate()-Method .
///
@@ -122,9 +120,6 @@ namespace CampusAppWP8.Feed.Departments
return Utilities.DayDifference(Utilities.DifferenceType.Less, lastModified, 30);
}
- // Protedted
- #endregion
-
// Method
#endregion
}
diff --git a/CampusAppWP8/CampusAppWP8/Feed/Events/EventFeed.cs b/CampusAppWP8/CampusAppWP8/Feed/Events/EventFeed.cs
index bf11138f..ef800d52 100644
--- a/CampusAppWP8/CampusAppWP8/Feed/Events/EventFeed.cs
+++ b/CampusAppWP8/CampusAppWP8/Feed/Events/EventFeed.cs
@@ -19,6 +19,8 @@ namespace CampusAppWP8.Feed.Events
///
public class EventFeed : XmlModel
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -36,6 +38,10 @@ namespace CampusAppWP8.Feed.Events
}
}
+ #endregion
+
+ #region Method
+
///
/// Method implement CheckIsModelUpToDate()-Method
///
@@ -111,5 +117,7 @@ namespace CampusAppWP8.Feed.Events
{
return Utilities.DayDifference(Utilities.DifferenceType.Less, lastModified, 1.0);
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Feed/Exams/ExamFeed.cs b/CampusAppWP8/CampusAppWP8/Feed/Exams/ExamFeed.cs
index ac85174d..474b74f2 100644
--- a/CampusAppWP8/CampusAppWP8/Feed/Exams/ExamFeed.cs
+++ b/CampusAppWP8/CampusAppWP8/Feed/Exams/ExamFeed.cs
@@ -16,7 +16,9 @@ namespace CampusAppWP8.Feed.Exams
/// Exam feed.
/// Stubbfel, 02.09.2013.
public class ExamFeed : XmlModel
- {
+ {
+ #region Constructor
+
/// Initializes a new instance of the ExamFeed class.
/// Stubbfel, 02.09.2013.
public ExamFeed()
@@ -28,6 +30,10 @@ namespace CampusAppWP8.Feed.Exams
this.ValidRootName = Constants.ExamXmlValidRootName;
}
+ #endregion
+
+ #region Method
+
/// Check is model up to date.
/// Stubbfel, 02.09.2013.
/// The model.
@@ -61,5 +67,7 @@ namespace CampusAppWP8.Feed.Exams
return true;
}
- }
+
+ #endregion
+ }
}
diff --git a/CampusAppWP8/CampusAppWP8/Feed/Link/ClubLinkFeed.cs b/CampusAppWP8/CampusAppWP8/Feed/Link/ClubLinkFeed.cs
index ff4e256c..98d1c57c 100644
--- a/CampusAppWP8/CampusAppWP8/Feed/Link/ClubLinkFeed.cs
+++ b/CampusAppWP8/CampusAppWP8/Feed/Link/ClubLinkFeed.cs
@@ -36,8 +36,6 @@ namespace CampusAppWP8.Feed.Link
#region Method
- #region Private
-
///
/// Method check if the FeedModel is up-to-date
///
@@ -82,7 +80,5 @@ namespace CampusAppWP8.Feed.Link
}
#endregion
-
- #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Feed/Link/CommonLinkFeed.cs b/CampusAppWP8/CampusAppWP8/Feed/Link/CommonLinkFeed.cs
index 57e07b05..dbdc8e3d 100644
--- a/CampusAppWP8/CampusAppWP8/Feed/Link/CommonLinkFeed.cs
+++ b/CampusAppWP8/CampusAppWP8/Feed/Link/CommonLinkFeed.cs
@@ -36,8 +36,6 @@ namespace CampusAppWP8.Feed.Link
#region Method
- #region Private
-
///
/// Method check if the FeedModel is up-to-date
///
@@ -82,7 +80,5 @@ namespace CampusAppWP8.Feed.Link
}
#endregion
-
- #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedCBMain.cs b/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedCBMain.cs
index 682d33a6..f342c9a8 100644
--- a/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedCBMain.cs
+++ b/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedCBMain.cs
@@ -14,6 +14,8 @@ namespace CampusAppWP8.Feed.Mensa
///
public class MensaFeedCBMain : MensaFeed
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -22,5 +24,7 @@ namespace CampusAppWP8.Feed.Mensa
{
this.Title = AppResources.Campus_CBMain;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedCBNorth.cs b/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedCBNorth.cs
index 6edfe0c6..76626dc8 100644
--- a/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedCBNorth.cs
+++ b/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedCBNorth.cs
@@ -14,6 +14,8 @@ namespace CampusAppWP8.Feed.Mensa
///
public class MensaFeedCBNorth : MensaFeed
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -22,5 +24,7 @@ namespace CampusAppWP8.Feed.Mensa
{
this.Title = AppResources.Campus_CBNorth;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedCBSouth.cs b/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedCBSouth.cs
index 46796322..f173c3bc 100644
--- a/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedCBSouth.cs
+++ b/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedCBSouth.cs
@@ -14,6 +14,8 @@ namespace CampusAppWP8.Feed.Mensa
///
public class MensaFeedCBSouth : MensaFeed
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -22,5 +24,7 @@ namespace CampusAppWP8.Feed.Mensa
{
this.Title = AppResources.Campus_CBSouth;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedSBFMain.cs b/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedSBFMain.cs
index e524160f..557ad5ff 100644
--- a/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedSBFMain.cs
+++ b/CampusAppWP8/CampusAppWP8/Feed/Mensa/MensaFeedSBFMain.cs
@@ -14,6 +14,8 @@ namespace CampusAppWP8.Feed.Mensa
///
public class MensaFeedSBFMain : MensaFeed
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -22,5 +24,7 @@ namespace CampusAppWP8.Feed.Mensa
{
this.Title = AppResources.Campus_SFBMain;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Feed/News/NewsFeed.cs b/CampusAppWP8/CampusAppWP8/Feed/News/NewsFeed.cs
index 44a83a77..145c9873 100644
--- a/CampusAppWP8/CampusAppWP8/Feed/News/NewsFeed.cs
+++ b/CampusAppWP8/CampusAppWP8/Feed/News/NewsFeed.cs
@@ -19,6 +19,8 @@ namespace CampusAppWP8.Feed.News
///
public class NewsFeed : XmlModel
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -36,6 +38,10 @@ namespace CampusAppWP8.Feed.News
}
}
+ #endregion
+
+ #region Method
+
///
/// Method implement CheckIsModelUpToDate()-Method
///
@@ -110,5 +116,7 @@ namespace CampusAppWP8.Feed.News
{
return Utilities.DayDifference(Utilities.DifferenceType.Less, lastModified, 1.0);
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Feed/Openinghours/OpeninghoursFeed.cs b/CampusAppWP8/CampusAppWP8/Feed/Openinghours/OpeninghoursFeed.cs
index 7858f67a..b84ebc33 100644
--- a/CampusAppWP8/CampusAppWP8/Feed/Openinghours/OpeninghoursFeed.cs
+++ b/CampusAppWP8/CampusAppWP8/Feed/Openinghours/OpeninghoursFeed.cs
@@ -36,8 +36,6 @@ namespace CampusAppWP8.Feed.Openinghours
#region Method
- #region Private
-
///
/// Method check if the FeedModel is up-to-date
///
@@ -114,7 +112,5 @@ namespace CampusAppWP8.Feed.Openinghours
}
#endregion
-
- #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Feed/StudentCouncil/StudentCouncilFeed.cs b/CampusAppWP8/CampusAppWP8/Feed/StudentCouncil/StudentCouncilFeed.cs
index c381f65f..91d3fe4c 100644
--- a/CampusAppWP8/CampusAppWP8/Feed/StudentCouncil/StudentCouncilFeed.cs
+++ b/CampusAppWP8/CampusAppWP8/Feed/StudentCouncil/StudentCouncilFeed.cs
@@ -36,8 +36,6 @@ namespace CampusAppWP8.Feed.StudentCouncil
#region Method
- #region Private
-
///
/// Method check if the FeedModel is up-to-date
///
@@ -82,7 +80,5 @@ namespace CampusAppWP8.Feed.StudentCouncil
}
#endregion
-
- #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Feed/Utility/CourseFeed.cs b/CampusAppWP8/CampusAppWP8/Feed/Utility/CourseFeed.cs
index 7c0c0b30..10a6ecce 100644
--- a/CampusAppWP8/CampusAppWP8/Feed/Utility/CourseFeed.cs
+++ b/CampusAppWP8/CampusAppWP8/Feed/Utility/CourseFeed.cs
@@ -7,10 +7,6 @@
//----------------------------------------------------------------------
namespace CampusAppWP8.Feed.Utility
{
- using System.IO;
- using CampusAppWP8.Model;
- using CampusAppWP8.Model.Exams;
- using CampusAppWP8.Resources;
using CampusAppWP8.Feed.Exams;
/// Course Feed.
diff --git a/CampusAppWP8/CampusAppWP8/File/Departments/DepartmentFavoriteFile.cs b/CampusAppWP8/CampusAppWP8/File/Departments/DepartmentFavoriteFile.cs
index 1bf739c2..7d7e3861 100644
--- a/CampusAppWP8/CampusAppWP8/File/Departments/DepartmentFavoriteFile.cs
+++ b/CampusAppWP8/CampusAppWP8/File/Departments/DepartmentFavoriteFile.cs
@@ -15,14 +15,13 @@ namespace CampusAppWP8.File.Departments
///
/// Feed object to handle favorite department feeds.
///
- public class DepartmentFavoriteFile: XmlModel
+ public class DepartmentFavoriteFile : XmlModel
{
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
- /// automatic loading of the data
+ /// Initializes a new instance of the DepartmentFavoriteFile class.
+ /// Stubbfel, 12.09.2013.
+ /// (Optional) the automatic load.
public DepartmentFavoriteFile(bool autoLoad = true)
: base(ModelType.File, Constants.FileDepartment_Favorite_Name, string.Empty)
{
@@ -40,8 +39,6 @@ namespace CampusAppWP8.File.Departments
#region Method
- #region Protected
-
///
/// Method implement CheckIsModelUpToDate()-Method .
///
@@ -57,7 +54,7 @@ namespace CampusAppWP8.File.Departments
{
retValue = false;
}
-
+
return retValue;
}
@@ -75,7 +72,7 @@ namespace CampusAppWP8.File.Departments
{
retValue = true;
}
-
+
return retValue;
}
@@ -90,13 +87,10 @@ namespace CampusAppWP8.File.Departments
bool retValue = false;
retValue = (model.HasChanged() == false) ? true : false;
-
+
return retValue;
}
- // Protected
- #endregion
-
// Method
#endregion
}
diff --git a/CampusAppWP8/CampusAppWP8/File/Exams/ExamFile.cs b/CampusAppWP8/CampusAppWP8/File/Exams/ExamFile.cs
index 8c29f9eb..597baf1c 100644
--- a/CampusAppWP8/CampusAppWP8/File/Exams/ExamFile.cs
+++ b/CampusAppWP8/CampusAppWP8/File/Exams/ExamFile.cs
@@ -16,9 +16,15 @@ namespace CampusAppWP8.File.Exams
/// Stubbfel, 03.09.2013.
public class ExamFile : BinaryModel
{
+ #region Member
+
/// The storage file.
private StorageFile storageFile;
+ #endregion
+
+ #region Constructor
+
/// Initializes a new instance of the ExamFile class.
/// Stubbfel, 03.09.2013.
/// Filename of the file.
@@ -31,6 +37,12 @@ namespace CampusAppWP8.File.Exams
this.IsFileUpToDateOnSave += new IsFileUpToDate(this.CheckIsFileUpToDate);
}
+ #endregion
+
+ #region Method
+
+ #region public
+
/// Executes the file operation.
/// Stubbfel, 03.09.2013.
public async void LaunchFile()
@@ -47,6 +59,8 @@ namespace CampusAppWP8.File.Exams
}
}
+ #endregion
+
/// Saves the and launch file.
/// Stubbfel, 03.09.2013.
public void SaveAndLaunchFile()
@@ -62,6 +76,8 @@ namespace CampusAppWP8.File.Exams
}
}
+ #region private
+
/// Check is model up to date.
/// Stubbfel, 03.09.2013.
/// The model.
@@ -90,5 +106,9 @@ namespace CampusAppWP8.File.Exams
return true;
}
+
+ #endregion
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/File/Places/PlacesFile.cs b/CampusAppWP8/CampusAppWP8/File/Places/PlacesFile.cs
index d11e4083..5a3e57f1 100644
--- a/CampusAppWP8/CampusAppWP8/File/Places/PlacesFile.cs
+++ b/CampusAppWP8/CampusAppWP8/File/Places/PlacesFile.cs
@@ -16,6 +16,8 @@ using CampusAppWP8.Resources;
/// Stubbfel, 09.09.2013.
public class PlacesFile : XmlModel
{
+ #region Constructor
+
/// Initializes a new instance of the PlacesFile class.
/// Stubbfel, 09.09.2013.
public PlacesFile()
@@ -25,6 +27,10 @@ using CampusAppWP8.Resources;
this.IsFileUpToDateOnSave += new IsFileUpToDate(this.CheckIsFileUpToDate);
}
+ #endregion
+
+ #region Method
+
/// Check is file up to date.
/// Stubbfel, 09.09.2013.
/// The model.
@@ -39,5 +45,7 @@ using CampusAppWP8.Resources;
return false;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/LocalizedStrings.cs b/CampusAppWP8/CampusAppWP8/LocalizedStrings.cs
index f0a4a960..77a09aa1 100644
--- a/CampusAppWP8/CampusAppWP8/LocalizedStrings.cs
+++ b/CampusAppWP8/CampusAppWP8/LocalizedStrings.cs
@@ -11,9 +11,13 @@ namespace CampusAppWP8
/// Localized strings.
public class LocalizedStrings
{
+ #region Member
+
/// The localized resources.
private static AppResources localizedResources = new AppResources();
+ #region Property
+
/// Gets the localized resources.
/// The localized resources.
public AppResources LocalizedResources
@@ -21,7 +25,9 @@ namespace CampusAppWP8
get
{
return localizedResources;
- }
+ }
}
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Model/BinaryModel.cs b/CampusAppWP8/CampusAppWP8/Model/BinaryModel.cs
index 6cf9fe7b..a372e9d9 100644
--- a/CampusAppWP8/CampusAppWP8/Model/BinaryModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/BinaryModel.cs
@@ -12,6 +12,8 @@ namespace CampusAppWP8.Model
/// Stubbfel, 03.09.2013.
public abstract class BinaryModel : MainModel
{
+ #region Constructor
+
/// Initializes a new instance of the BinaryModel class.
/// Stubbfel, 03.09.2013.
/// Type of the model.
@@ -31,6 +33,10 @@ namespace CampusAppWP8.Model
{
}
+ #endregion
+
+ #region Method
+
/// Deserialize model.
/// Stubbfel, 03.09.2013.
/// Information describing the model.
@@ -58,5 +64,7 @@ namespace CampusAppWP8.Model
{
return this.Model;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Campusmap/CBMainMapModel.cs b/CampusAppWP8/CampusAppWP8/Model/Campusmap/CBMainMapModel.cs
index 0c12cec8..f955f2dc 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Campusmap/CBMainMapModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Campusmap/CBMainMapModel.cs
@@ -17,9 +17,15 @@ namespace CampusAppWP8.Model.Campusmap
///
public class CBMainMapModel : MapModel
{
+ #region Member
+
/// Variable for the identify of the campus.
private static readonly string Campus = ((int)CampusAppWP8.Model.Setting.UserProfilModel.Campus.CB_MAIN).ToString();
+ #endregion
+
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -37,6 +43,10 @@ namespace CampusAppWP8.Model.Campusmap
this.GeoOffsetY = 51.766548;
}
+ #endregion
+
+ #region Method
+
/// Loads the spatial./.
/// Stubbfel, 19.08.2013.
protected override void LoadSpatials()
@@ -52,5 +62,7 @@ namespace CampusAppWP8.Model.Campusmap
}
}
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Campusmap/CurrentPositionPinModel.cs b/CampusAppWP8/CampusAppWP8/Model/Campusmap/CurrentPositionPinModel.cs
index 8bb3347d..0e9b0552 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Campusmap/CurrentPositionPinModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Campusmap/CurrentPositionPinModel.cs
@@ -15,6 +15,8 @@ namespace CampusAppWP8.Model.Campusmap
/// Stubbfel, 27.08.2013.
public class CurrentPositionPinModel : MapPinModel
{
+ #region Constructor
+
/// Initializes a new instance of the CurrentPositionPinModel class.
/// Stubbfel, 27.08.2013.
public CurrentPositionPinModel()
@@ -25,5 +27,7 @@ namespace CampusAppWP8.Model.Campusmap
this.PinImageOffsetX = -25;
this.PinImageOffsetY = -34;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Campusmap/MapModel.cs b/CampusAppWP8/CampusAppWP8/Model/Campusmap/MapModel.cs
index 49a5009d..421d4fc8 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Campusmap/MapModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Campusmap/MapModel.cs
@@ -90,6 +90,8 @@ namespace CampusAppWP8.Model.Campusmap
#region Methods
+ #region public
+
///
/// Method calculate the coordinates of ScrollToOffsets point
///
@@ -218,12 +220,20 @@ namespace CampusAppWP8.Model.Campusmap
return this.ConverToMapPoint(point.X, point.Y);
}
+ #endregion
+
+ #region protected
+
/// Loads the spatial./
/// Stubbfel, 19.08.2013.
protected virtual void LoadSpatials()
{
}
+ #endregion
+
+ #region private
+
/// Creates a pin.
/// Stubbfel, 27.08.2013.
/// The type.
@@ -246,6 +256,9 @@ namespace CampusAppWP8.Model.Campusmap
return pin;
}
+
+ #endregion
+
#endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Campusmap/SearchPlacePinModel.cs b/CampusAppWP8/CampusAppWP8/Model/Campusmap/SearchPlacePinModel.cs
index 4cba699a..78edcb0e 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Campusmap/SearchPlacePinModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Campusmap/SearchPlacePinModel.cs
@@ -15,6 +15,8 @@ namespace CampusAppWP8.Model.Campusmap
/// Stubbfel, 27.08.2013.
public class SearchPlacePinModel : MapPinModel
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -27,5 +29,7 @@ namespace CampusAppWP8.Model.Campusmap
this.PinImageOffsetX = -25;
this.PinImageOffsetY = -27;
}
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Model/Departments/ChairModel.cs b/CampusAppWP8/CampusAppWP8/Model/Departments/ChairModel.cs
index 2cbaecea..968f91ab 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Departments/ChairModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Departments/ChairModel.cs
@@ -15,6 +15,8 @@ namespace CampusAppWP8.Model.Departments
///
public class ChairModel
{
+ #region Member
+
///
/// German name of the chair.
///
@@ -30,6 +32,10 @@ namespace CampusAppWP8.Model.Departments
///
private string nameEN = string.Empty;
+ #endregion
+
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -37,6 +43,10 @@ namespace CampusAppWP8.Model.Departments
{
}
+ #endregion
+
+ #region Property
+
///
/// Initializes a new instance of the class.
///
@@ -124,5 +134,7 @@ namespace CampusAppWP8.Model.Departments
}
}
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Departments/DepartmentModel.cs b/CampusAppWP8/CampusAppWP8/Model/Departments/DepartmentModel.cs
index c2256507..202bc929 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Departments/DepartmentModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Departments/DepartmentModel.cs
@@ -17,6 +17,8 @@ namespace CampusAppWP8.Model.Departments
[XmlRoot("root")]
public class DepartmentModel
{
+ #region Member
+
///
/// Object to store the time when the instance was created.
///
@@ -27,6 +29,10 @@ namespace CampusAppWP8.Model.Departments
///
private ObservableCollection faculties;
+ #endregion
+
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -36,6 +42,10 @@ namespace CampusAppWP8.Model.Departments
this.createTime = DateTime.Now;
}
+ #endregion
+
+ #region Property
+
///
/// Gets or sets the faculty list.
///
@@ -68,6 +78,10 @@ namespace CampusAppWP8.Model.Departments
}
}
+ #endregion
+
+ #region Method
+
///
/// Check if the content of the faculty lists hast changed since the
/// last call of this function.
@@ -87,5 +101,7 @@ namespace CampusAppWP8.Model.Departments
return retValue;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Departments/FacultyModel.cs b/CampusAppWP8/CampusAppWP8/Model/Departments/FacultyModel.cs
index f7b7407c..3014dcf2 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Departments/FacultyModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Departments/FacultyModel.cs
@@ -16,6 +16,8 @@ namespace CampusAppWP8.Model.Departments
///
public class FacultyModel
{
+ #region Member
+
///
/// Object to hold the information of the chair containing to this
/// faculty.
@@ -32,6 +34,10 @@ namespace CampusAppWP8.Model.Departments
///
private bool hasChanged = false;
+ #endregion
+
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -40,6 +46,10 @@ namespace CampusAppWP8.Model.Departments
this.chairs = new ObservableCollection();
}
+ #endregion
+
+ #region Property
+
///
/// Initializes a new instance of the class.
///
@@ -126,6 +136,10 @@ namespace CampusAppWP8.Model.Departments
return retValue;
}
+ #endregion
+
+ #region Method
+
///
/// Add a chair to the list, if it does not already exist.
///
@@ -234,5 +248,7 @@ namespace CampusAppWP8.Model.Departments
return retValue;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Exams/ExamListModel.cs b/CampusAppWP8/CampusAppWP8/Model/Exams/ExamListModel.cs
index 64b1c6e0..407c65ab 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Exams/ExamListModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Exams/ExamListModel.cs
@@ -17,11 +17,17 @@ namespace CampusAppWP8.Model.Exams
[XmlRoot("links")]
public class ExamListModel
{
+ #region Property
+
/// Gets or sets the exams.
/// The exams.
[XmlElement("link")]
public ObservableCollection Exams { get; set; }
+ #endregion
+
+ #region Property
+
/// Creates course list.
/// Stubbfel, 10.09.2013.
/// The new course list.
@@ -40,5 +46,7 @@ namespace CampusAppWP8.Model.Exams
return result;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Exams/ExamModel.cs b/CampusAppWP8/CampusAppWP8/Model/Exams/ExamModel.cs
index 57752d26..58c58ce6 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Exams/ExamModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Exams/ExamModel.cs
@@ -14,6 +14,8 @@ namespace CampusAppWP8.Model.Exams
/// Stubbfel, 02.09.2013.
public class ExamModel
{
+ #region Property
+
/// Gets or sets the course number.
/// The course number.
[XmlAttribute("stg")]
@@ -63,5 +65,7 @@ namespace CampusAppWP8.Model.Exams
return StringManager.StripHTML(this.CourseText + " (" + this.Type + "/" + this.Version + ")");
}
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceInformation.cs b/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceInformation.cs
index 55c50d24..d504afd3 100644
--- a/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceInformation.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceInformation.cs
@@ -14,6 +14,8 @@ namespace CampusAppWP8.Model.GeoDb
/// Stubbfel, 19.08.2013.
public class PlaceInformation : IEquatable
{
+ #region Property
+
/// Gets or sets the name of the information.
/// The name of the information.
[XmlAttribute("placeInformationName")]
@@ -24,6 +26,10 @@ namespace CampusAppWP8.Model.GeoDb
[XmlText]
public string InformationValue { get; set; }
+ #endregion
+
+ #region Method
+
/// Tests if this PlaceInformation is considered equal to another.
/// Stubbfel, 09.09.2013.
/// The place information to compare to this object.
@@ -37,5 +43,7 @@ namespace CampusAppWP8.Model.GeoDb
return false;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceModel.cs b/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceModel.cs
index 463bcd89..2758cfcc 100644
--- a/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceModel.cs
@@ -23,6 +23,8 @@ namespace CampusAppWP8.Model.GeoDb
///
public class PlaceModel : IEquatable
{
+ #region Property
+
///
/// Gets or sets the placeId
///
@@ -85,6 +87,10 @@ namespace CampusAppWP8.Model.GeoDb
[XmlElement("placeService")]
public ObservableCollection Services { get; set; }
+ #endregion
+
+ #region Method
+
/// Converts this object to a nfc string.
/// Stubbfel, 21.08.2013.
/// This object as a string.
@@ -108,9 +114,9 @@ namespace CampusAppWP8.Model.GeoDb
return false;
}
- /// Adds a place informations.
+ /// Adds a place information.
/// Stubbfel, 09.09.2013.
- /// The place informations.
+ /// The place information.
public void AddPlaceInformations(List placeInformations)
{
foreach (PlaceInformation info in placeInformations)
@@ -200,5 +206,7 @@ namespace CampusAppWP8.Model.GeoDb
return true;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceService.cs b/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceService.cs
index 303c760c..9f318365 100644
--- a/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceService.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceService.cs
@@ -15,6 +15,8 @@ namespace CampusAppWP8.Model.GeoDb
/// Stubbfel, 19.08.2013.
public class PlaceService : IEquatable
{
+ #region Property
+
/// Gets or sets the name of the service.
/// The name of the service.
[XmlAttribute("placeServiceName")]
@@ -30,6 +32,10 @@ namespace CampusAppWP8.Model.GeoDb
[XmlElement("request")]
public string Request { get; set; }
+ #endregion
+
+ #region Method
+
/// Gets the URL string.
/// The URL string.
public string URLString
@@ -53,5 +59,7 @@ namespace CampusAppWP8.Model.GeoDb
return false;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/GeoDb/SpsModel.cs b/CampusAppWP8/CampusAppWP8/Model/GeoDb/SpsModel.cs
index d08a5d3e..1430a436 100644
--- a/CampusAppWP8/CampusAppWP8/Model/GeoDb/SpsModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/GeoDb/SpsModel.cs
@@ -19,6 +19,8 @@ namespace CampusAppWP8.Model.GeoDb
[XmlRoot("root")]
public class SpsModel
{
+ #region Constructor
+
/// Initializes a new instance of the SpsModel class.
/// Stubbfel, 20.08.2013.
public SpsModel()
@@ -27,16 +29,24 @@ namespace CampusAppWP8.Model.GeoDb
this.Places = new ObservableCollection();
}
+ #endregion
+
+ #region Property
+
///
/// Gets or sets a list of places
///
[XmlElement("place")]
public ObservableCollection Places { get; set; }
- /// Gets a value indicating whether this object has changed.
+ /// Gets or sets a value indicating whether this object has changed.
/// true if this object has changed, false if not.
public bool HasChanged { get; set; }
+ #endregion
+
+ #region Method
+
/// Gets places by information.
/// Stubbfel, 19.08.2013.
/// The query.
@@ -107,6 +117,7 @@ namespace CampusAppWP8.Model.GeoDb
this.Places.Add(place);
}
}
+
this.HasChanged = true;
}
@@ -182,7 +193,7 @@ namespace CampusAppWP8.Model.GeoDb
/// Filter by PID.
/// Stubbfel, 11.09.2013.
/// List of pids.
- /// flitered list of places
+ /// filtered list of places.
public List FilterByPid(List pidList)
{
List fitlerList = new List();
@@ -196,5 +207,7 @@ namespace CampusAppWP8.Model.GeoDb
return fitlerList;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureActivity.cs b/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureActivity.cs
index 5c32e0ed..8d87520b 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureActivity.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureActivity.cs
@@ -9,8 +9,8 @@ namespace CampusAppWP8.Model.Lecture
{
using System.Collections.ObjectModel;
using System.Xml.Serialization;
- using CampusAppWP8.Utility;
using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility;
///
/// Model for a Activity
@@ -19,6 +19,21 @@ namespace CampusAppWP8.Model.Lecture
{
#region Members
+ /// The activity icon name lecture.
+ private const string ActivityIconNameLecture = "Vorlesung";
+
+ /// The activity icon name seminar.
+ private const string ActivityIconNameSeminar = "Seminar";
+
+ /// The activity icon name practice.
+ private const string ActivityIconNamePract = "Übung";
+
+ /// The activity icon name lab.
+ private const string ActivityIconNameLab = "Labor";
+
+ /// The activity icon name exam.
+ private const string ActivityIconNameExam = "Prüfung";
+
///
/// List of lecturer
///
@@ -42,22 +57,8 @@ namespace CampusAppWP8.Model.Lecture
/// URL of the icon.
private string iconUrl;
- /// The activity icon name lecture.
- private const string ActivityIconNameLecture = "Vorlesung";
-
- /// The activity icon name seminar.
- private const string ActivityIconNameSeminar = "Seminar";
-
- /// The activity icon name pract.
- private const string ActivityIconNamePract = "Übung";
-
- /// The activity icon name lab.
- private const string ActivityIconNameLab = "Labor";
-
- /// The activity icon name exam.
- private const string ActivityIconNameExam = "Prüfung";
-
#endregion
+
#region Constructor
///
@@ -217,6 +218,8 @@ namespace CampusAppWP8.Model.Lecture
#region Methods
+ #region public
+
///
/// Method create a formatted string of the LecturerList
///
@@ -245,6 +248,10 @@ namespace CampusAppWP8.Model.Lecture
this.CourseString = StringManager.RemoveNewLine(result);
}
+ #endregion
+
+ #region private
+
/// Creates icon URL.
/// Stubbfel, 12.09.2013.
private void CreateIconUrl()
@@ -278,5 +285,7 @@ namespace CampusAppWP8.Model.Lecture
}
#endregion
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureCourse.cs b/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureCourse.cs
index 03d40bf4..b418f12e 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureCourse.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureCourse.cs
@@ -13,6 +13,8 @@ namespace CampusAppWP8.Model.Lecture
///
public class LectureCourse
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -20,10 +22,16 @@ namespace CampusAppWP8.Model.Lecture
{
}
+ #endregion
+
+ #region Property
+
///
/// Gets or sets the title of the course
///
[XmlElement("bezeichnung")]
public string Title { get; set; }
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureDate.cs b/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureDate.cs
index 701f9ef4..a6fab88a 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureDate.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureDate.cs
@@ -14,6 +14,8 @@ namespace CampusAppWP8.Model.Lecture
///
public class LectureDate
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -21,6 +23,10 @@ namespace CampusAppWP8.Model.Lecture
{
}
+ #endregion
+
+ #region Property
+
///
/// Gets or sets WeekDay
///
@@ -62,5 +68,7 @@ namespace CampusAppWP8.Model.Lecture
///
[XmlElement("enddatum")]
public string EndDate { get; set; }
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureLecturer.cs b/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureLecturer.cs
index 1e2d92e5..7d9102b2 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureLecturer.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Lecture/LectureLecturer.cs
@@ -14,6 +14,8 @@ namespace CampusAppWP8.Model.Lecture
///
public class LectureLecturer
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -21,6 +23,10 @@ namespace CampusAppWP8.Model.Lecture
{
}
+ #endregion
+
+ #region Property
+
///
/// Gets or sets the FirstName of a lecturer
///
@@ -45,6 +51,10 @@ namespace CampusAppWP8.Model.Lecture
[XmlAttribute("zustaendigkeit")]
public string Responsibility { get; set; }
+ #endregion
+
+ #region Method
+
///
/// Method overrides the base ToString() and create an formatted string of the lecturer
///
@@ -68,5 +78,7 @@ namespace CampusAppWP8.Model.Lecture
return result;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/MainModel.cs b/CampusAppWP8/CampusAppWP8/Model/MainModel.cs
index 6a01db2b..4123275f 100644
--- a/CampusAppWP8/CampusAppWP8/Model/MainModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/MainModel.cs
@@ -20,6 +20,8 @@ namespace CampusAppWP8
/// model type
public abstract class MainModel
{
+ #region Member
+
///
/// File object.
///
@@ -55,6 +57,10 @@ namespace CampusAppWP8
///
private Uri paramizedUri = null;
+ #endregion
+
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -87,6 +93,10 @@ namespace CampusAppWP8
}
}
+ #endregion
+
+ #region Events
+
///
/// Delegate of the OnIO callback function.
///
@@ -174,6 +184,10 @@ namespace CampusAppWP8
///
public event IsModelUpToDate IsModelUpToDateOnSave = null;
+ #endregion
+
+ #region Enum
+
///
/// Specifies the I/O type of the model.
///
@@ -213,6 +227,10 @@ namespace CampusAppWP8
FORCE_WEB = 2
}
+ #endregion
+
+ #region Property
+
///
/// Gets or sets the Model.
///
@@ -229,6 +247,12 @@ namespace CampusAppWP8
}
}
+ #endregion
+
+ #region Method
+
+ #region public
+
///
/// Forces a update from web.
///
@@ -412,6 +436,10 @@ namespace CampusAppWP8
this.paramizedUri = null;
}
+ #endregion
+
+ #region protected
+
///
/// Abstract declaration of the model deserialize function.
///
@@ -457,6 +485,10 @@ namespace CampusAppWP8
return retValue;
}
+ #endregion
+
+ #region private
+
///
/// Initialize the class. Is called by the constructors.
///
@@ -596,5 +628,9 @@ namespace CampusAppWP8
return retValue;
}
+
+ #endregion
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Model/Mensa/MenuModel.cs b/CampusAppWP8/CampusAppWP8/Model/Mensa/MenuModel.cs
index b9ef20f1..3f5f48d0 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Mensa/MenuModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Mensa/MenuModel.cs
@@ -8,11 +8,8 @@
namespace CampusAppWP8.Model.Mensa
{
using System;
- using System.Xml.Serialization;
- using CampusAppWP8.Resources;
- using CampusAppWP8.Utility;
using System.Collections.ObjectModel;
- using System.Globalization;
+ using System.Xml.Serialization;
///
/// Model for menu
diff --git a/CampusAppWP8/CampusAppWP8/Model/Person/PersonFunctionModel.cs b/CampusAppWP8/CampusAppWP8/Model/Person/PersonFunctionModel.cs
index 147fbc5d..5b68531c 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Person/PersonFunctionModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Person/PersonFunctionModel.cs
@@ -14,6 +14,8 @@ namespace CampusAppWP8.Model.Person
/// Stubbfel, 05.09.2013.
public class PersonFunctionModel
{
+ #region Member
+
/// The first tel.
private string tel1;
@@ -35,6 +37,10 @@ namespace CampusAppWP8.Model.Person
/// The building.
private string building;
+ #endregion
+
+ #region Property
+
/// Gets or sets the tel 1.
/// The tel 1.
[XmlAttribute("telefon")]
@@ -175,5 +181,7 @@ namespace CampusAppWP8.Model.Person
/// Gets or sets zero-based index of the function.
/// The function index.
public int FunctionIndex { get; set; }
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Person/PersonListModel.cs b/CampusAppWP8/CampusAppWP8/Model/Person/PersonListModel.cs
index 0182d9ce..8af959d0 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Person/PersonListModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Person/PersonListModel.cs
@@ -17,11 +17,17 @@ namespace CampusAppWP8.Model.Person
[XmlRoot("Uebersicht")]
public class PersonListModel
{
+ #region Property
+
/// Gets or sets the persons.
/// The persons.
[XmlElement("person")]
public ObservableCollection Persons { get; set; }
+ #endregion
+
+ #region Method
+
/// Sets person identifier to function.
/// Stubbfel, 05.09.2013.
public void SetPersonIdToFunction()
@@ -75,5 +81,7 @@ namespace CampusAppWP8.Model.Person
this.Persons.Remove(removePerson);
}
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Person/PersonModel.cs b/CampusAppWP8/CampusAppWP8/Model/Person/PersonModel.cs
index a8b51572..af48f050 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Person/PersonModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Person/PersonModel.cs
@@ -15,6 +15,8 @@ namespace CampusAppWP8.Model.Person
/// Stubbfel, 05.09.2013.
public class PersonModel
{
+ #region Member
+
/// The akadgrad.
private string akadgrad;
@@ -30,6 +32,10 @@ namespace CampusAppWP8.Model.Person
/// The functions.
private ObservableCollection functions;
+ #endregion
+
+ #region Property
+
/// Gets or sets the identifier.
/// The identifier.
[XmlAttribute("id")]
@@ -137,6 +143,10 @@ namespace CampusAppWP8.Model.Person
}
}
+ #endregion
+
+ #region Method
+
/// Sets person identifier to function.
/// Stubbfel, 05.09.2013.
public void SetPersonIdToFunction()
@@ -153,5 +163,7 @@ namespace CampusAppWP8.Model.Person
function.FunctionIndex = index++;
}
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/RSS/RSSChannelModel.cs b/CampusAppWP8/CampusAppWP8/Model/RSS/RSSChannelModel.cs
index fc8a8afe..fd0f0463 100644
--- a/CampusAppWP8/CampusAppWP8/Model/RSS/RSSChannelModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/RSS/RSSChannelModel.cs
@@ -21,6 +21,8 @@ namespace CampusAppWP8.Model.RSS
///
private ObservableCollection item;
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -30,6 +32,10 @@ namespace CampusAppWP8.Model.RSS
this.item.CollectionChanged += new NotifyCollectionChangedEventHandler(this.OnListChanged);
}
+ #endregion
+
+ #region Property
+
///
/// Gets or sets the RSS feed item list.
///
@@ -50,6 +56,10 @@ namespace CampusAppWP8.Model.RSS
}
}
+ #endregion
+
+ #region Method
+
///
/// Is called when the item list has changed.
/// Here used for the add event.
@@ -66,5 +76,7 @@ namespace CampusAppWP8.Model.RSS
list[list.Count - 1].Index = list.Count - 1;
}
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/RSS/RSSModel.cs b/CampusAppWP8/CampusAppWP8/Model/RSS/RSSModel.cs
index 725cd074..ec341240 100644
--- a/CampusAppWP8/CampusAppWP8/Model/RSS/RSSModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/RSS/RSSModel.cs
@@ -16,6 +16,8 @@ namespace CampusAppWP8.Model.RSS
///
public class RSSModel
{
+ #region Member
+
///
/// Index of this object.
///
@@ -41,6 +43,10 @@ namespace CampusAppWP8.Model.RSS
///
private string link;
+ #endregion
+
+ #region Property
+
///
/// Gets or sets the title of the feed.
///
@@ -131,7 +137,7 @@ namespace CampusAppWP8.Model.RSS
///
/// Gets the time of the timestamp as string.
- /// example: 12:56 Uhr.
+ /// example: 12:56.
///
public string Time
{
@@ -177,6 +183,12 @@ namespace CampusAppWP8.Model.RSS
}
}
+ #endregion
+
+ #region Method
+
+ #region public
+
///
/// Comparing function for DateTime timestamps.
/// (currently unused)
@@ -196,6 +208,10 @@ namespace CampusAppWP8.Model.RSS
}
}
+ #endregion
+
+ #region private
+
///
/// Remove or transform html-unicode specific tags into ASCII.
///
@@ -252,5 +268,9 @@ namespace CampusAppWP8.Model.RSS
return retValue.ToString();
}
+
+ #endregion
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/RSS/RSSViewModel.cs b/CampusAppWP8/CampusAppWP8/Model/RSS/RSSViewModel.cs
index e09a01f0..7f0b2691 100644
--- a/CampusAppWP8/CampusAppWP8/Model/RSS/RSSViewModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/RSS/RSSViewModel.cs
@@ -17,6 +17,8 @@ namespace CampusAppWP8.Model.RSS
[XmlRoot("root")]
public class RSSViewModel
{
+ #region Member
+
///
/// Object to store the time when the instance was created.
///
@@ -26,7 +28,11 @@ namespace CampusAppWP8.Model.RSS
/// Channel list for the RSS feeds.
///
private ObservableCollection channel;
-
+
+ #endregion
+
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -36,6 +42,10 @@ namespace CampusAppWP8.Model.RSS
this.createTime = DateTime.Now;
}
+ #endregion
+
+ #region Property
+
///
/// Gets or sets the channel list.
///
@@ -67,5 +77,7 @@ namespace CampusAppWP8.Model.RSS
return this.createTime;
}
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Setting/AppSettings.cs b/CampusAppWP8/CampusAppWP8/Model/Setting/AppSettings.cs
index 65da2561..d12e961a 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Setting/AppSettings.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Setting/AppSettings.cs
@@ -15,6 +15,8 @@ namespace CampusAppWP8.Model.Setting
///
public class AppSettings
{
+ #region Property
+
///
/// Gets or sets a value indicating whether the GeoWatch-Flag
///
@@ -106,5 +108,7 @@ namespace CampusAppWP8.Model.Setting
App.SaveToAppState(Constants.AppSetting_OnlyWifi, value);
}
}
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Model/Setting/UserProfilModel.cs b/CampusAppWP8/CampusAppWP8/Model/Setting/UserProfilModel.cs
index a753efca..eb957228 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Setting/UserProfilModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Setting/UserProfilModel.cs
@@ -192,8 +192,6 @@ namespace CampusAppWP8.Model.Setting
#region Methods
- #region private
-
///
/// Methods check if a value could be a valid semester
///
@@ -225,7 +223,5 @@ namespace CampusAppWP8.Model.Setting
}
#endregion
-
- #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/StudentCouncil/StudentCouncilListModel.cs b/CampusAppWP8/CampusAppWP8/Model/StudentCouncil/StudentCouncilListModel.cs
index 1a935a1a..914798d1 100644
--- a/CampusAppWP8/CampusAppWP8/Model/StudentCouncil/StudentCouncilListModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/StudentCouncil/StudentCouncilListModel.cs
@@ -26,6 +26,7 @@ namespace CampusAppWP8.Model.StudentCouncil
private readonly DateTime createTime;
#endregion
+
#region Constructor
///
/// Initializes a new instance of the class.
diff --git a/CampusAppWP8/CampusAppWP8/Model/Utility/CampusListPickerItemListModel.cs b/CampusAppWP8/CampusAppWP8/Model/Utility/CampusListPickerItemListModel.cs
index 372c2103..60469c7f 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Utility/CampusListPickerItemListModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Utility/CampusListPickerItemListModel.cs
@@ -28,8 +28,6 @@ namespace CampusAppWP8.Model.Utility
#region Method
- #region private
-
///
/// Overrides the LoadList-Method
///
@@ -42,7 +40,5 @@ namespace CampusAppWP8.Model.Utility
}
#endregion
-
- #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Utility/CleanUrlParamModel.cs b/CampusAppWP8/CampusAppWP8/Model/Utility/CleanUrlParamModel.cs
index 46d2211c..b7e20c43 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Utility/CleanUrlParamModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Utility/CleanUrlParamModel.cs
@@ -10,25 +10,24 @@ namespace CampusAppWP8.Model.Utility
///
/// This class is a Model for the URLParameter like GET-Parameter
///
- public class CleanUrlParamModel:UrlParamModel
+ public class CleanUrlParamModel : UrlParamModel
{
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
- /// the key for the parameter
- public CleanUrlParamModel(string key) :base(key)
+ /// Initializes a new instance of the CleanUrlParamModel class.
+ /// Stubbfel, 12.09.2013.
+ /// the key for the parameter.
+ public CleanUrlParamModel(string key)
+ : base(key)
{
-
}
- ///
- /// Initializes a new instance of the class.
- ///
- /// the key for the parameter>
- /// value of the parameter
- public CleanUrlParamModel(string key, string value) : base(key,value)
+ /// Initializes a new instance of the CleanUrlParamModel class.
+ /// Stubbfel, 12.09.2013.
+ /// the key for the parameter.
+ /// The value.
+ public CleanUrlParamModel(string key, string value)
+ : base(key, value)
{
}
#endregion
diff --git a/CampusAppWP8/CampusAppWP8/Model/Utility/CourseListPickerItemListModel.cs b/CampusAppWP8/CampusAppWP8/Model/Utility/CourseListPickerItemListModel.cs
index e518704d..1015879a 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Utility/CourseListPickerItemListModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Utility/CourseListPickerItemListModel.cs
@@ -17,9 +17,13 @@ namespace CampusAppWP8.Model.Utility
///
public class CourseListPickerItemListModel : ListPickerItemListModel
{
+ #region Member
+
/// List of courses.
private CourseFeed courseList;
+ #endregion
+
#region Constructor
///
@@ -30,9 +34,7 @@ namespace CampusAppWP8.Model.Utility
}
#endregion
-
- #region Method
-
+
#region Events
///
@@ -44,9 +46,12 @@ namespace CampusAppWP8.Model.Utility
/// Callback pointer, called after loading.
///
public event OnIO OnLoaded = null;
+
#endregion
- #region private
+ #region Method
+
+ #region public
///
/// Overrides the LoadList-Method
@@ -66,6 +71,10 @@ namespace CampusAppWP8.Model.Utility
this.CallOnLoaded();
}
}
+
+ #endregion
+
+ #region private
/// Fall back list.
/// Stubbfel, 10.09.2013.
diff --git a/CampusAppWP8/CampusAppWP8/Model/Utility/CourseModel.cs b/CampusAppWP8/CampusAppWP8/Model/Utility/CourseModel.cs
index 26ad1dc5..bba93443 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Utility/CourseModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Utility/CourseModel.cs
@@ -13,6 +13,8 @@ namespace CampusAppWP8.Model.Utility
/// Stubbfel, 10.09.2013.
public class CourseModel : IEquatable
{
+ #region Constructor
+
/// Initializes a new instance of the CourseModel class.
/// Stubbfel, 10.09.2013.
/// The course number.
@@ -23,6 +25,10 @@ namespace CampusAppWP8.Model.Utility
this.CourseText = courseText;
}
+ #endregion
+
+ #region Property
+
/// Gets or sets the course number.
/// The course number.
public string CourseNumber { get; set; }
@@ -31,6 +37,10 @@ namespace CampusAppWP8.Model.Utility
/// The course text.
public string CourseText { get; set; }
+ #endregion
+
+ #region Method
+
/// Tests if this CourseModel is considered equal to another.
/// Stubbfel, 10.09.2013.
/// The course model to compare to this object.
@@ -44,5 +54,7 @@ namespace CampusAppWP8.Model.Utility
return false;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Utility/DegreeListPickerItemListModel.cs b/CampusAppWP8/CampusAppWP8/Model/Utility/DegreeListPickerItemListModel.cs
index 78c211bd..515eda2a 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Utility/DegreeListPickerItemListModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Utility/DegreeListPickerItemListModel.cs
@@ -28,8 +28,6 @@ namespace CampusAppWP8.Model.Utility
#region Method
- #region private
-
///
/// Overrides the LoadList-Method
///
@@ -41,7 +39,5 @@ namespace CampusAppWP8.Model.Utility
}
#endregion
-
- #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Utility/ListPickerItemListModel.cs b/CampusAppWP8/CampusAppWP8/Model/Utility/ListPickerItemListModel.cs
index 555ebf40..f9985ff4 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Utility/ListPickerItemListModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Utility/ListPickerItemListModel.cs
@@ -127,7 +127,7 @@ namespace CampusAppWP8.Model.Utility
#endregion
- #region private
+ #region protected
///
/// Method load an default list
diff --git a/CampusAppWP8/CampusAppWP8/Model/Utility/ListPickerItemModel.cs b/CampusAppWP8/CampusAppWP8/Model/Utility/ListPickerItemModel.cs
index 5dceec55..d20163bc 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Utility/ListPickerItemModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Utility/ListPickerItemModel.cs
@@ -12,6 +12,8 @@ namespace CampusAppWP8.Model.Utility
///
public class ListPickerItemModel
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -30,6 +32,10 @@ namespace CampusAppWP8.Model.Utility
this.Text = text;
}
+ #endregion
+
+ #region Property
+
///
/// Gets or sets the Value of an Item
///
@@ -39,5 +45,7 @@ namespace CampusAppWP8.Model.Utility
/// Gets or sets the Text (caption) of an Item
///
public string Text { get; set; }
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Utility/RoleListPickerItemListModel.cs b/CampusAppWP8/CampusAppWP8/Model/Utility/RoleListPickerItemListModel.cs
index 205f2b6a..e185f875 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Utility/RoleListPickerItemListModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Utility/RoleListPickerItemListModel.cs
@@ -28,8 +28,6 @@ namespace CampusAppWP8.Model.Utility
#region Method
- #region private
-
///
/// Overrides the LoadList-Method
///
@@ -40,7 +38,5 @@ namespace CampusAppWP8.Model.Utility
}
#endregion
-
- #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Utility/SemesterListPickerItemListModel.cs b/CampusAppWP8/CampusAppWP8/Model/Utility/SemesterListPickerItemListModel.cs
index e3d3be7f..44e206d1 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Utility/SemesterListPickerItemListModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Utility/SemesterListPickerItemListModel.cs
@@ -28,8 +28,6 @@ namespace CampusAppWP8.Model.Utility
#region Method
- #region private
-
///
/// Overrides the LoadList-Method
///
@@ -41,7 +39,5 @@ namespace CampusAppWP8.Model.Utility
}
#endregion
-
- #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/XmlModel.cs b/CampusAppWP8/CampusAppWP8/Model/XmlModel.cs
index 5a2cbdbe..b50aaa85 100644
--- a/CampusAppWP8/CampusAppWP8/Model/XmlModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/XmlModel.cs
@@ -17,6 +17,8 @@ namespace CampusAppWP8.Model
/// model type
public abstract class XmlModel : MainModel
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -41,6 +43,10 @@ namespace CampusAppWP8.Model
this.ValidRootName = Constants.XMLRootElementName;
}
+ #endregion
+
+ #region Method
+
///
/// Gets or sets for the name of the root-tag
///
@@ -85,5 +91,7 @@ namespace CampusAppWP8.Model
return retValue;
}
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml
index bc93963e..2033c099 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml
+++ b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml
@@ -35,11 +35,11 @@
-
+
-
-
+
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Events/EventPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Events/EventPage.xaml.cs
index 9283b491..03f83d24 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Events/EventPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Events/EventPage.xaml.cs
@@ -25,6 +25,8 @@ namespace CampusAppWP8.Pages.Events
///
public partial class EventPage : PhoneApplicationPage
{
+ #region Method
+
///
/// To checking if the feed source is already set or not.
///
@@ -46,6 +48,10 @@ namespace CampusAppWP8.Pages.Events
/// The is in speech.
private volatile bool isInSpeech = false;
+ #endregion
+
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -71,6 +77,12 @@ namespace CampusAppWP8.Pages.Events
this.isInSpeech = false;
}
+ #endregion
+
+ #region Method
+
+ #region protected
+
///
/// On navigation to this page.
/// The PivotItem source will be set, if it wasn't before.
@@ -157,6 +169,10 @@ namespace CampusAppWP8.Pages.Events
}
}
+ #endregion
+
+ #region private
+
///
/// Called when the index of the selected PivotItem is changed.
/// Set the text Grid to visible and the WebBrowser to collapsed.
@@ -222,5 +238,9 @@ namespace CampusAppWP8.Pages.Events
this.isInSpeech = false;
}
}
+
+ #endregion
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Exams/Exams.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Exams/Exams.xaml.cs
index 1aaaaa0a..bce8f255 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Exams/Exams.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Exams/Exams.xaml.cs
@@ -21,12 +21,18 @@ namespace CampusAppWP8.Pages.Exams
/// Stubbfel, 02.09.2013.
public partial class Exams : PhoneApplicationPage
{
+ #region Member
+
/// The feed.
private ExamFeed feed;
/// The exam file.
private ExamFile file;
+ #endregion
+
+ #region Constructor
+
/// Initializes a new instance of the Exams class.
/// Stubbfel, 02.09.2013.
public Exams()
@@ -35,6 +41,12 @@ namespace CampusAppWP8.Pages.Exams
this.InitializeFeed();
}
+ #endregion
+
+ #region Method
+
+ #region protected
+
/// Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.
/// Stubbfel, 02.09.2013.
/// Ein Objekt, das die Ereignisdaten enthält.
@@ -68,6 +80,10 @@ namespace CampusAppWP8.Pages.Exams
}
}
+ #endregion
+
+ #region private
+
/// Method initialize the Feed.
/// Stubbfel, 02.09.2013.
private void InitializeFeed()
@@ -199,5 +215,9 @@ namespace CampusAppWP8.Pages.Exams
this.file.LoadData();
this.ProgressBar.Visibility = System.Windows.Visibility.Visible;
}
+
+ #endregion
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Lecture/ModulWebPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Lecture/ModulWebPage.xaml.cs
index cf6d4332..95e3e8d0 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Lecture/ModulWebPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Lecture/ModulWebPage.xaml.cs
@@ -17,6 +17,8 @@ namespace CampusAppWP8.Pages.Lecture
///
public partial class ModulWebPage : PhoneApplicationPage
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -24,6 +26,10 @@ namespace CampusAppWP8.Pages.Lecture
{
this.InitializeComponent();
}
+
+ #endregion
+
+ #region Method
///
/// Override the OnNavigatedTo method
@@ -39,5 +45,7 @@ namespace CampusAppWP8.Pages.Lecture
base.OnNavigatedTo(e);
}
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultDetailPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultDetailPage.xaml.cs
index e09763e3..87a5c88e 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultDetailPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultDetailPage.xaml.cs
@@ -17,6 +17,8 @@ namespace CampusAppWP8.Pages.Lecture
///
public partial class ResultDetailPage : PhoneApplicationPage
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -25,6 +27,11 @@ namespace CampusAppWP8.Pages.Lecture
this.InitializeComponent();
}
+ #endregion
+
+ #region Method
+
+ #region protected
///
/// Override the OnNavigatedTo method
///
@@ -40,6 +47,10 @@ namespace CampusAppWP8.Pages.Lecture
base.OnNavigatedTo(e);
}
+ #endregion
+
+ #region private
+
///
/// Method load a certain Activity from the model
///
@@ -53,7 +64,12 @@ namespace CampusAppWP8.Pages.Lecture
activity.CreateLectureString();
activity.CreateCourseString();
this.ContentPanel.DataContext = activity;
- }
+ }
}
+
+ #endregion
+
+ #endregion
+
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultPage.xaml.cs
index 47d94d1f..aefe127f 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultPage.xaml.cs
@@ -21,6 +21,8 @@ namespace CampusAppWP8.Pages.Lecture
///
public partial class ResultPage : PhoneApplicationPage
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -29,6 +31,10 @@ namespace CampusAppWP8.Pages.Lecture
this.InitializeComponent();
}
+ #endregion
+
+ #region Method
+
///
/// Override the OnNavigatedTo method
///
@@ -46,7 +52,6 @@ namespace CampusAppWP8.Pages.Lecture
if (list.Activities.Count > 0)
{
-
this.ResultList.ItemsSource = list.Activities.OrderByDescending(o => o.Type).ThenBy(o => o.Title).ToList();
}
else
@@ -57,7 +62,9 @@ namespace CampusAppWP8.Pages.Lecture
{
NavigationService.GoBack();
}
- }
+ }
}
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs
index ed045122..779eef46 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs
@@ -12,9 +12,9 @@ namespace CampusAppWP8.Pages.Links
using System.Windows.Navigation;
using CampusAppWP8.Feed.Link;
using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility;
using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
- using CampusAppWP8.Utility;
///
/// Class for the LinkPage
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs
index 4559285f..66988df9 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs
@@ -14,10 +14,10 @@ namespace CampusAppWP8.Pages.Mensa
using CampusAppWP8.Api.GeoApi;
using CampusAppWP8.Feed.Mensa;
using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility;
using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
- using CampusAppWP8.Utility;
///
/// Class for the MensaPage
diff --git a/CampusAppWP8/CampusAppWP8/Pages/News/NewsIndexPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/News/NewsIndexPage.xaml.cs
index c46b20d8..7b5f8e7e 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/News/NewsIndexPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/News/NewsIndexPage.xaml.cs
@@ -12,21 +12,27 @@ namespace CampusAppWP8.Pages.News
using System.Windows.Navigation;
using CampusAppWP8.Feed.News;
using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility;
using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
- using CampusAppWP8.Utility;
///
/// Overview page of all news.
///
public partial class NewsIndexPage : PhoneApplicationPage
{
+ #region Member
+
///
/// News Feed object, which contains the RSS models and data.
///
private static NewsFeed newsFeed = null;
+ #endregion
+
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -52,6 +58,10 @@ namespace CampusAppWP8.Pages.News
NewsIndexPage.newsFeed.LoadData(Utilities.GetLoadModus());
}
+ #endregion
+
+ #region Property
+
///
/// Gets or sets the feed object.
///
@@ -80,6 +90,12 @@ namespace CampusAppWP8.Pages.News
return NewsIndexPage.newsFeed;
}
+ #endregion
+
+ #region Method
+
+ #region protected
+
///
/// On navigation to this page, creates a FeedEventHandler and load the RSS feed data.
///
@@ -103,6 +119,11 @@ namespace CampusAppWP8.Pages.News
base.OnNavigatedFrom(e);
}
+
+ #endregion
+
+ #region private
+
///
/// Is called after the RSS feeds are loaded into the newsFeed model.
/// If there was no feed information set to the UI, the feed list
@@ -143,5 +164,9 @@ namespace CampusAppWP8.Pages.News
this.progressBar.Visibility = Visibility.Collapsed;
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
}
+
+ #endregion
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Openinghours/OpeninghoursPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Openinghours/OpeninghoursPage.xaml.cs
index 276189b1..725f7d2f 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Openinghours/OpeninghoursPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Openinghours/OpeninghoursPage.xaml.cs
@@ -13,9 +13,9 @@ namespace CampusAppWP8.Pages.Openinghours
using CampusAppWP8.Feed.Openinghours;
using CampusAppWP8.Model.Openinghours;
using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility;
using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
- using CampusAppWP8.Utility;
///
/// Opening hours page.
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml.cs
index 1fa324ca..b95c31e2 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml.cs
@@ -23,9 +23,15 @@ namespace CampusAppWP8.Pages.Person
/// Stubbfel, 09.09.2013.
public partial class PersonPage : PhoneApplicationPage
{
+ #region Member
+
/// The API.
private PersonSearchApi api;
+ #endregion
+
+ #region Constructor
+
/// Initializes a new instance of the PersonPage class.
/// Stubbfel, 09.09.2013.
public PersonPage()
@@ -33,6 +39,10 @@ namespace CampusAppWP8.Pages.Person
this.InitializeComponent();
}
+ #endregion
+
+ #region Method
+
/// Sends a request.
/// Stubbfel, 09.09.2013.
/// Source of the event.
@@ -127,5 +137,7 @@ namespace CampusAppWP8.Pages.Person
saveContactTask.Show();
}
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/PlaceNews.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/PlaceNews.xaml.cs
index 2d0f1056..b8c4ef91 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/PlaceNews.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/PlaceNews.xaml.cs
@@ -26,6 +26,7 @@ namespace CampusAppWP8.Pages.PlaceNews
/// Stubbfel, 09.09.2013.
public partial class PlaceNews : PhoneApplicationPage
{
+ #region Member
/// The sps API.
private SpsApi spsApi;
@@ -38,13 +39,19 @@ namespace CampusAppWP8.Pages.PlaceNews
/// The places.
private PlacesFile places;
- /// varaible indicates how many apis are running.
+ /// variable indicates how many apis are running.
private int waitForApi;
- /// true to force reqest.
- private bool forceReqest;
+ /// true to force request.
+ private bool forceRequest;
+
+ /// List of search pids.
private List searchPidList;
+ #endregion
+
+ #region Constructor
+
/// Initializes a new instance of the PlaceNews class.
/// Stubbfel, 09.09.2013.
public PlaceNews()
@@ -53,6 +60,12 @@ namespace CampusAppWP8.Pages.PlaceNews
this.waitForApi = 0;
}
+ #endregion
+
+ #region Method
+
+ #region protected
+
/// Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.
/// Stubbfel, 09.09.2013.
/// Ein Objekt, das die Ereignisdaten enthält.
@@ -72,10 +85,8 @@ namespace CampusAppWP8.Pages.PlaceNews
Thread thread = new Thread(delegate()
{
this.InitializeApi();
-
});
thread.Start();
-
}
}
@@ -92,6 +103,10 @@ namespace CampusAppWP8.Pages.PlaceNews
}
}
+ #endregion
+
+ #region private
+
/// Initializes the API.
/// Stubbfel, 09.09.2013.
private void InitializeApi()
@@ -106,20 +121,20 @@ namespace CampusAppWP8.Pages.PlaceNews
}
// init sps Api
- if (this.spsApi == null || this.forceReqest)
+ if (this.spsApi == null || this.forceRequest)
{
this.spsApi = new SpsApi();
this.spsApi.OnLoaded += new SpsApi.OnIO(this.SpsApiIsReady);
this.spsApi.OnFailedLoad += new SpsApi.OnFailed(this.ApiIsFail);
this.spsApi.SetupCurrentPlaceRequest(Constants.SpsDomain_Buildings);
- if (this.forceReqest)
+ if (this.forceRequest)
{
this.spsApi.LoadData();
}
}
// init pis API
- if (this.pisApi == null || this.forceReqest)
+ if (this.pisApi == null || this.forceRequest)
{
this.pisApi = new PisApi();
this.pisApi.OnLoaded += new PisApi.OnIO(this.PisApiIsReady);
@@ -127,7 +142,7 @@ namespace CampusAppWP8.Pages.PlaceNews
}
// init pss Api
- if (this.pssApi == null || this.forceReqest)
+ if (this.pssApi == null || this.forceRequest)
{
this.pssApi = new PssApi();
this.pssApi.OnLoaded += new PssApi.OnIO(this.PssApiIsReady);
@@ -158,7 +173,8 @@ namespace CampusAppWP8.Pages.PlaceNews
this.spsApi.OnLoaded += new SpsApi.OnIO(this.SpsApiIsReady);
this.spsApi.OnFailedLoad += new SpsApi.OnFailed(this.ApiIsFail);
this.spsApi.SetupCurrentPlaceRequest(Constants.SpsDomain_Buildings);
- }
+ }
+
this.spsApi.LoadData();
this.waitForApi++;
}
@@ -174,6 +190,7 @@ namespace CampusAppWP8.Pages.PlaceNews
this.spsApi.OnFailedLoad += new SpsApi.OnFailed(this.ApiIsFail);
this.spsApi.SetupCurrentPlaceRequest(Constants.SpsDomain_Buildings);
}
+
this.spsApi.LoadData();
this.waitForApi++;
}
@@ -216,22 +233,22 @@ namespace CampusAppWP8.Pages.PlaceNews
this.waitForApi--;
this.places.Model.AddPlaces(this.spsApi.Model.Places.ToList());
- searchPidList = this.spsApi.Model.CreatePidList();
+ this.searchPidList = this.spsApi.Model.CreatePidList();
List infoNames = new List() { Constants.PisInformationName_Name };
List serviceNames = new List() { Constants.PssServiceName_PlaceNews };
// load from pis api
- if (this.forceReqest || !this.places.Model.ContainsInformationNames(searchPidList, infoNames))
+ if (this.forceRequest || !this.places.Model.ContainsInformationNames(this.searchPidList, infoNames))
{
- this.pisApi.SetupInformationRequest(searchPidList, infoNames);
+ this.pisApi.SetupInformationRequest(this.searchPidList, infoNames);
this.pisApi.LoadData();
this.waitForApi++;
}
// load from pis api
- if (this.forceReqest || !this.places.Model.ContainsServiceNames(searchPidList, serviceNames))
+ if (this.forceRequest || !this.places.Model.ContainsServiceNames(this.searchPidList, serviceNames))
{
- this.pssApi.SetupServiceRequest(searchPidList, serviceNames);
+ this.pssApi.SetupServiceRequest(this.searchPidList, serviceNames);
this.pssApi.LoadData();
this.waitForApi++;
}
@@ -247,7 +264,7 @@ namespace CampusAppWP8.Pages.PlaceNews
this.ProgressBar.Visibility = Visibility.Collapsed;
this.places.SaveData();
App.SaveToIsolatedStorage(Constants.IsolatedStorage_AllPlaces, this.places.Model);
- this.forceReqest = false;
+ this.forceRequest = false;
}
/// Event handler. Called by UpdateButtonAppBar for click events.
@@ -266,7 +283,7 @@ namespace CampusAppWP8.Pages.PlaceNews
private void InitApiCurrentPositionForce()
{
Utilities.DetermineAndStoreCurrentPositionForce();
- this.forceReqest = true;
+ this.forceRequest = true;
this.InitializeApi();
}
@@ -302,5 +319,9 @@ namespace CampusAppWP8.Pages.PlaceNews
}
}
}
+
+ #endregion
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/ShowPad.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/ShowPad.xaml.cs
index 960241b3..31828bcc 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/ShowPad.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/ShowPad.xaml.cs
@@ -18,13 +18,19 @@ namespace CampusAppWP8.Pages.PlaceNews
/// Stubbfel, 09.09.2013.
public partial class ShowPad : PhoneApplicationPage
{
+ #region Constructor
+
/// Initializes a new instance of the ShowPad class.
/// Stubbfel, 09.09.2013.
public ShowPad()
{
- InitializeComponent();
+ this.InitializeComponent();
}
+ #endregion
+
+ #region Method
+
/// Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.
/// Stubbfel, 09.09.2013.
/// Ein Objekt, das die Ereignisdaten enthält.
@@ -44,5 +50,7 @@ namespace CampusAppWP8.Pages.PlaceNews
base.OnNavigatedTo(e);
}
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml.cs
index a3406e04..905422f7 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml.cs
@@ -15,6 +15,8 @@ namespace CampusAppWP8.Pages.Setting
///
public partial class AppSettingPage : PhoneApplicationPage
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -25,6 +27,10 @@ namespace CampusAppWP8.Pages.Setting
OnlyWiFiToggle.IsChecked = Settings.AppSetting.OnlyWifi;
}
+ #endregion
+
+ #region Method
+
///
/// Override the OnNavigatedFrom method
///
@@ -37,5 +43,7 @@ namespace CampusAppWP8.Pages.Setting
Settings.AppSetting.OnlyWifi = OnlyWiFiToggle.IsChecked.Value;
}
}
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Setting/UserProfil.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Setting/UserProfil.xaml.cs
index 86babeb8..2a5f9a81 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Setting/UserProfil.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Setting/UserProfil.xaml.cs
@@ -20,6 +20,8 @@ namespace CampusAppWP8.Pages.Setting
///
public partial class UserProfil : PhoneApplicationPage
{
+ #region Member
+
///
/// Reference of the profileFile
///
@@ -28,6 +30,10 @@ namespace CampusAppWP8.Pages.Setting
/// List of courses.
private CourseListPickerItemListModel courseList;
+ #endregion
+
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -38,6 +44,12 @@ namespace CampusAppWP8.Pages.Setting
this.LoadListPicker();
}
+ #endregion
+
+ #region Method
+
+ #region protected
+
///
/// Override the OnNavigatedFrom method
///
@@ -50,6 +62,10 @@ namespace CampusAppWP8.Pages.Setting
}
}
+ #endregion
+
+ #region private
+
/// Loads list picker.
/// Stubbfel, 10.09.2013.
private void LoadListPicker()
@@ -102,5 +118,9 @@ namespace CampusAppWP8.Pages.Setting
Logger.LogException(e);
}
}
+
+ #endregion
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs
index 1096ff17..459a5316 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs
@@ -24,9 +24,15 @@ namespace CampusAppWP8.Pages
///
public partial class StartPage : PhoneApplicationPage
{
+ #region Member
+
/// List of initialise courses.
private CourseFeed initCourseList;
+ #endregion
+
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -76,6 +82,12 @@ namespace CampusAppWP8.Pages
}
}
+ #endregion
+
+ #region Method
+
+ #region protected
+
///
/// Methods overrides the OnNavigatedTo-Method
///
@@ -85,6 +97,10 @@ namespace CampusAppWP8.Pages
base.OnNavigatedTo(e);
}
+ #endregion
+
+ #region private
+
/// Stores course feed.
/// Stubbfel, 10.09.2013.
private void StoreCourseFeed()
@@ -251,5 +267,9 @@ namespace CampusAppWP8.Pages
Settings.AppSetting.GeoWatchEnable = false;
}
}
+
+ #endregion
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs
index a1de45c2..06ab89bd 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs
@@ -12,9 +12,9 @@ namespace CampusAppWP8.Pages.StudentCouncil
using System.Windows.Navigation;
using CampusAppWP8.Feed.StudentCouncil;
using CampusAppWP8.Resources;
+ using CampusAppWP8.Utility;
using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
- using CampusAppWP8.Utility;
///
/// Class for the StudentCouncilPage
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Webmail/WebmailPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Webmail/WebmailPage.xaml.cs
index 50afc636..0344e9d7 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Webmail/WebmailPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Webmail/WebmailPage.xaml.cs
@@ -16,6 +16,8 @@ namespace CampusAppWP8.Pages.Webmail
///
public partial class WebmailPage : PhoneApplicationPage
{
+ #region Constructor
+
///
/// Initializes a new instance of the class.
///
@@ -25,6 +27,10 @@ namespace CampusAppWP8.Pages.Webmail
this.LoadWebmailPage();
}
+ #endregion
+
+ #region Method
+
///
/// Method load WebmailPage
///
@@ -32,5 +38,7 @@ namespace CampusAppWP8.Pages.Webmail
{
this.WebmailBrowser.Navigate(new Uri(Constants.UrlWebMail_Addr, UriKind.Absolute));
}
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Settings.StyleCop b/CampusAppWP8/CampusAppWP8/Settings.StyleCop
index 3ecec60b..cf756198 100644
--- a/CampusAppWP8/CampusAppWP8/Settings.StyleCop
+++ b/CampusAppWP8/CampusAppWP8/Settings.StyleCop
@@ -1,9 +1,26 @@
+ akadgrad
api
+ apis
enum
+ initialise
+ initialises
+ ndef
+ ndefs
+ nfc
+ param
+ pid
+ pids
+ pis
+ prev
+ pss
+ Senftenberg
+ sps
Stubbfel
+ uni
+ wifi
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Settings.cs b/CampusAppWP8/CampusAppWP8/Settings.cs
index a09bbe44..a02b99fb 100644
--- a/CampusAppWP8/CampusAppWP8/Settings.cs
+++ b/CampusAppWP8/CampusAppWP8/Settings.cs
@@ -15,6 +15,8 @@ namespace CampusAppWP8
///
public static class Settings
{
+ #region Member
+
///
/// reference of the user-profile-file
///
@@ -25,6 +27,10 @@ namespace CampusAppWP8
///
private static AppSettings appSetting = new AppSettings();
+ #endregion
+
+ #region Property
+
///
/// Gets or sets the user-profile-file
///
@@ -62,5 +68,7 @@ namespace CampusAppWP8
}
}
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/ThemelizedIcons.cs b/CampusAppWP8/CampusAppWP8/ThemelizedIcons.cs
index 0cf17d0f..e353db8e 100644
--- a/CampusAppWP8/CampusAppWP8/ThemelizedIcons.cs
+++ b/CampusAppWP8/CampusAppWP8/ThemelizedIcons.cs
@@ -14,11 +14,17 @@ namespace CampusAppWP8
///
public class ThemelizedIcons
{
+ #region Member
+
///
/// Resource object.
///
private static Icons themelized = new Icons();
+ #endregion
+
+ #region Property
+
///
/// Gets the resource object.
///
@@ -29,5 +35,7 @@ namespace CampusAppWP8
return themelized;
}
}
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Utility/File.cs b/CampusAppWP8/CampusAppWP8/Utility/File.cs
index 3a444a0d..7905b1d9 100644
--- a/CampusAppWP8/CampusAppWP8/Utility/File.cs
+++ b/CampusAppWP8/CampusAppWP8/Utility/File.cs
@@ -18,6 +18,8 @@ namespace CampusAppWP8.Utility
///
public class File
{
+ #region Member
+
///
/// Folder object.
///
@@ -28,6 +30,10 @@ namespace CampusAppWP8.Utility
///
private string filename = string.Empty;
+ #endregion
+
+ #region Constructor
+
/// Initializes a new instance of the class.
/// Stubbfel, 03.09.2013.
/// file name.
@@ -36,11 +42,21 @@ namespace CampusAppWP8.Utility
this.filename = filename;
}
+ #endregion
+
+ #region Events
+
///
/// Delegation of the write callback function prototype.
///
public delegate void WriteCallbackFunc();
+ #endregion
+
+ #region Method
+
+ #region public
+
/// Read data from file to a string.
/// Stubbfel, 03.09.2013.
/// data string.
@@ -99,6 +115,10 @@ namespace CampusAppWP8.Utility
return null;
}
+ #endregion
+
+ #region private
+
///
/// Read data synchronous from file.
///
@@ -208,5 +228,9 @@ namespace CampusAppWP8.Utility
onSavedCallback();
}
}
+
+ #endregion
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Utility/Logger.cs b/CampusAppWP8/CampusAppWP8/Utility/Logger.cs
index 6b8d3d33..4416a3b4 100644
--- a/CampusAppWP8/CampusAppWP8/Utility/Logger.cs
+++ b/CampusAppWP8/CampusAppWP8/Utility/Logger.cs
@@ -14,6 +14,8 @@ namespace CampusAppWP8.Utility
///
public class Logger
{
+ #region Method
+
///
/// Method log a Exception
///
@@ -31,5 +33,7 @@ namespace CampusAppWP8.Utility
{
Console.WriteLine(msg);
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Utility/Lui/Button/AddPersonButton.cs b/CampusAppWP8/CampusAppWP8/Utility/Lui/Button/AddPersonButton.cs
index 02f4df6d..f02e2040 100644
--- a/CampusAppWP8/CampusAppWP8/Utility/Lui/Button/AddPersonButton.cs
+++ b/CampusAppWP8/CampusAppWP8/Utility/Lui/Button/AddPersonButton.cs
@@ -18,6 +18,8 @@ namespace CampusAppWP8.Utility.Lui.Button
/// Stubbfel, 12.09.2013.
public class AddPersonButton : System.Windows.Controls.Button
{
+ #region Member
+
/// The person identifier property.
public static readonly DependencyProperty PersonIdProperty = DependencyProperty.Register("PersonID", typeof(object), typeof(AddPersonButton), new PropertyMetadata(false));
@@ -27,6 +29,10 @@ namespace CampusAppWP8.Utility.Lui.Button
/// The icon.
private static BitmapImage icon = new BitmapImage(new Uri(Icons.AddContact, UriKind.Relative));
+ #endregion
+
+ #region Constructor
+
/// Initializes a new instance of the AddPersonButton class.
/// Stubbfel, 12.09.2013.
public AddPersonButton()
@@ -38,6 +44,10 @@ namespace CampusAppWP8.Utility.Lui.Button
};
}
+ #endregion
+
+ #region Property
+
/// Gets or sets the identifier of the person.
/// The identifier of the person.
public object PersonId
@@ -53,5 +63,7 @@ namespace CampusAppWP8.Utility.Lui.Button
get { return (object)this.GetValue(FunctionIndexProperty); }
set { this.SetValue(FunctionIndexProperty, value); }
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Utility/Lui/MessageBoxes/MessageBoxes.cs b/CampusAppWP8/CampusAppWP8/Utility/Lui/MessageBoxes/MessageBoxes.cs
index 397e810f..45d20f39 100644
--- a/CampusAppWP8/CampusAppWP8/Utility/Lui/MessageBoxes/MessageBoxes.cs
+++ b/CampusAppWP8/CampusAppWP8/Utility/Lui/MessageBoxes/MessageBoxes.cs
@@ -15,6 +15,8 @@ namespace CampusAppWP8.Utility.Lui.MessageBoxes
///
public class MessageBoxes
{
+ #region Method
+
///
/// Method show the MessageBox for the GeoWatch-OptIn
///
@@ -42,5 +44,7 @@ namespace CampusAppWP8.Utility.Lui.MessageBoxes
{
return MessageBox.Show(text, AppResources.MsgBox_InfoHeader, MessageBoxButton.OK);
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Utility/NDEF/NDEFShortRecord.cs b/CampusAppWP8/CampusAppWP8/Utility/NDEF/NDEFShortRecord.cs
index 06927893..438edc25 100644
--- a/CampusAppWP8/CampusAppWP8/Utility/NDEF/NDEFShortRecord.cs
+++ b/CampusAppWP8/CampusAppWP8/Utility/NDEF/NDEFShortRecord.cs
@@ -13,6 +13,8 @@ namespace CampusAppWP8.Utility.NDEF
/// Stubbfel, 21.08.2013.
public class NDEFShortRecord : NDEFRecord
{
+ #region Constructor
+
/// Initializes a new instance of the NDEFShortRecord class.
/// Stubbfel, 21.08.2013.
public NDEFShortRecord()
@@ -37,6 +39,10 @@ namespace CampusAppWP8.Utility.NDEF
this.Payload = Encoding.UTF8.GetString(array, index + this.HeaderSize + this.PayloadPraefix.Length, payLoadSize);
}
+ #endregion
+
+ #region Method
+
/// Converts this NDEFShortRecord to a byte array.
/// Stubbfel, 21.08.2013.
/// This object as a byte[].
@@ -59,5 +65,7 @@ namespace CampusAppWP8.Utility.NDEF
return array;
}
+
+ #endregion
}
}
diff --git a/CampusAppWP8/CampusAppWP8/Utility/Utilities.cs b/CampusAppWP8/CampusAppWP8/Utility/Utilities.cs
index 0cba0d1f..cbc4c010 100644
--- a/CampusAppWP8/CampusAppWP8/Utility/Utilities.cs
+++ b/CampusAppWP8/CampusAppWP8/Utility/Utilities.cs
@@ -12,7 +12,6 @@ namespace CampusAppWP8.Utility
using System.Device.Location;
using System.Globalization;
using System.Linq;
- using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
@@ -24,10 +23,7 @@ namespace CampusAppWP8.Utility
///
public static class Utilities
{
- ///
- /// ResetEvent for CampusDetermination
- ///
- private static ManualResetEvent waitForCampus = new ManualResetEvent(false);
+ #region Enums
///
/// Comparison types.
@@ -60,6 +56,10 @@ namespace CampusAppWP8.Utility
GreaterEqual
}
+ #endregion
+
+ #region Method
+
///
/// Compares the difference between a specified DateTime and Now
/// and the specified time difference (in Days).
@@ -285,9 +285,9 @@ namespace CampusAppWP8.Utility
}
}
- /// Query if the phone is in the uni network. Method compares only Networkname and Description!
+ /// Query if the phone is in the uni network. Method compares only Network name and Description!
/// Stubbfel, 26.08.2013.
- /// true if uni networkavailable, false if not.
+ /// true if uni network is available, false if not.
public static bool IsUniNetworkAvailable()
{
NetworkInterfaceList networkInterfaceList = new NetworkInterfaceList();
@@ -340,5 +340,7 @@ namespace CampusAppWP8.Utility
return MainModel.ForceType.INVALID;
}
}
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/CampusAppWP8/CampusAppWP8/Utility/XmlManager.cs b/CampusAppWP8/CampusAppWP8/Utility/XmlManager.cs
index 75d1467e..118e8a11 100644
--- a/CampusAppWP8/CampusAppWP8/Utility/XmlManager.cs
+++ b/CampusAppWP8/CampusAppWP8/Utility/XmlManager.cs
@@ -16,6 +16,8 @@ namespace CampusAppWP8.Utility
///
public class XmlManager
{
+ #region Method
+
///
/// Method deserialization a string to a Model
///
@@ -51,12 +53,11 @@ namespace CampusAppWP8.Utility
return model;
}
- ///
- /// Method serializes a model to a string.
- ///
- /// type of the model
- /// model object
- /// serialized string
+ /// Method serializes a model to a string.
+ /// Stubbfel, 12.09.2013.
+ /// type of the model.
+ /// model object.
+ /// serialized string.
public static string SerializationToString(T model)
{
string retValue = string.Empty;
@@ -84,5 +85,7 @@ namespace CampusAppWP8.Utility
return retValue;
}
+
+ #endregion
}
}