add regions

This commit is contained in:
stubbfel
2013-09-12 16:02:00 +02:00
parent df4fd8ee3d
commit 42ddddfa2b
101 changed files with 992 additions and 149 deletions

View File

@@ -17,6 +17,8 @@ namespace CampusAppWP8.Api.GeoApi
/// </summary>
public class CampusSpsApi : SpsApi
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="CampusSpsApi" /> class.
/// </summary>
@@ -25,6 +27,10 @@ namespace CampusAppWP8.Api.GeoApi
{
}
#endregion
#region Method
/// <summary>
/// Method set the UriParameter of a campusRequest for a given latitude and longitude
/// </summary>
@@ -68,5 +74,7 @@ namespace CampusAppWP8.Api.GeoApi
return Settings.UserProfil.DefaultCampus;
}
#endregion
}
}

View File

@@ -18,17 +18,23 @@ namespace CampusAppWP8.Api.GeoApi
/// <remarks>Stubbfel, 09.09.2013.</remarks>
public class PisApi : XmlModel<SpsModel>
{
#region Constructor
/// <summary>Initializes a new instance of the PisApi class.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
public PisApi()
: base(ModelType.Feed, Constants.UrlPisService)
{
}
#endregion
#region Method
/// <summary>Sets up the information request.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
/// <param name="pidList"> List of pids.</param>
/// <param name="infoNames">(Optional) list of names of the informations.</param>
/// <param name="infoNames">(Optional) list of names of the information.</param>
public void SetupInformationRequest(List<string> pidList, List<string> infoNames = null)
{
string pidListStr = string.Empty;
@@ -52,5 +58,7 @@ namespace CampusAppWP8.Api.GeoApi
this.SetUriParams(parameterList);
}
#endregion
}
}

View File

@@ -18,12 +18,18 @@ namespace CampusAppWP8.Api.GeoApi
/// <remarks>Stubbfel, 09.09.2013.</remarks>
public class PssApi : XmlModel<SpsModel>
{
#region Constructor
/// <summary>Initializes a new instance of the PssApi class.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
public PssApi()
: base(ModelType.Feed, Constants.UrlPssService)
{
}
#endregion
#region Method
/// <summary>Sets up the service request.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
@@ -52,5 +58,7 @@ namespace CampusAppWP8.Api.GeoApi
this.SetUriParams(parameterList);
}
#endregion
}
}

View File

@@ -19,6 +19,8 @@ namespace CampusAppWP8.Api.GeoApi
/// </summary>
public class SpsApi : XmlModel<SpsModel>
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="SpsApi" /> class.
/// </summary>
@@ -27,6 +29,10 @@ namespace CampusAppWP8.Api.GeoApi
{
}
#endregion
#region Method
/// <summary>
/// Method set the UriParameter of a placeRequest for a given latitude and longitude
/// </summary>
@@ -56,5 +62,7 @@ namespace CampusAppWP8.Api.GeoApi
string log = App.LoadFromAppState<string>(Constants.GeoWatch_CurrentPosition_Long);
this.SetupPlaceRequest(lat, log, domian);
}
#endregion
}
}

View File

@@ -19,6 +19,8 @@ namespace CampusAppWP8.Api.Lecture
/// </remarks>
public class LectureApi : XmlModel<LectureList>
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="LectureApi" /> class.
/// </summary>
@@ -27,5 +29,7 @@ namespace CampusAppWP8.Api.Lecture
{
this.ValidRootName = Constants.LectureXmlValidRootName;
}
#endregion
}
}

View File

@@ -16,6 +16,8 @@ namespace CampusAppWP8.Api.Person
/// <remarks>Stubbfel, 05.09.2013.</remarks>
public class PersonSearchApi : XmlModel<PersonListModel>
{
#region Constructor
/// <summary>Initializes a new instance of the PersonSearchApi class.</summary>
/// <remarks>Stubbfel, 05.09.2013.</remarks>
public PersonSearchApi()
@@ -23,5 +25,7 @@ namespace CampusAppWP8.Api.Person
{
this.ValidRootName = Constants.PersonListValidRootName;
}
#endregion
}
}

View File

@@ -14,11 +14,17 @@ namespace CampusAppWP8
/// </summary>
public class Const
{
#region Member
/// <summary>
/// Resource object.
/// </summary>
private static Constants constantResources = new Constants();
#endregion
#region Property
/// <summary>
/// Gets the resource object.
/// </summary>
@@ -29,5 +35,7 @@ namespace CampusAppWP8
return constantResources;
}
}
#endregion
}
}

View File

@@ -43,8 +43,6 @@ namespace CampusAppWP8.Feed.Departments
#region Method
#region Protected
/// <summary>
/// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>.
/// </summary>
@@ -122,9 +120,6 @@ namespace CampusAppWP8.Feed.Departments
return Utilities.DayDifference(Utilities.DifferenceType.Less, lastModified, 30);
}
// Protedted
#endregion
// Method
#endregion
}

View File

@@ -19,6 +19,8 @@ namespace CampusAppWP8.Feed.Events
/// </summary>
public class EventFeed : XmlModel<RSSViewModel>
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="EventFeed" /> class.
/// </summary>
@@ -36,6 +38,10 @@ namespace CampusAppWP8.Feed.Events
}
}
#endregion
#region Method
/// <summary>
/// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>
/// </summary>
@@ -111,5 +117,7 @@ namespace CampusAppWP8.Feed.Events
{
return Utilities.DayDifference(Utilities.DifferenceType.Less, lastModified, 1.0);
}
#endregion
}
}

View File

@@ -16,7 +16,9 @@ namespace CampusAppWP8.Feed.Exams
/// <summary>Exam feed.</summary>
/// <remarks>Stubbfel, 02.09.2013.</remarks>
public class ExamFeed : XmlModel<ExamListModel>
{
{
#region Constructor
/// <summary>Initializes a new instance of the ExamFeed class.</summary>
/// <remarks>Stubbfel, 02.09.2013.</remarks>
public ExamFeed()
@@ -28,6 +30,10 @@ namespace CampusAppWP8.Feed.Exams
this.ValidRootName = Constants.ExamXmlValidRootName;
}
#endregion
#region Method
/// <summary>Check is model up to date.</summary>
/// <remarks>Stubbfel, 02.09.2013.</remarks>
/// <param name="model">The model.</param>
@@ -61,5 +67,7 @@ namespace CampusAppWP8.Feed.Exams
return true;
}
}
#endregion
}
}

View File

@@ -36,8 +36,6 @@ namespace CampusAppWP8.Feed.Link
#region Method
#region Private
/// <summary>
/// Method check if the FeedModel is up-to-date
/// </summary>
@@ -82,7 +80,5 @@ namespace CampusAppWP8.Feed.Link
}
#endregion
#endregion
}
}

View File

@@ -36,8 +36,6 @@ namespace CampusAppWP8.Feed.Link
#region Method
#region Private
/// <summary>
/// Method check if the FeedModel is up-to-date
/// </summary>
@@ -82,7 +80,5 @@ namespace CampusAppWP8.Feed.Link
}
#endregion
#endregion
}
}

View File

@@ -14,6 +14,8 @@ namespace CampusAppWP8.Feed.Mensa
/// </summary>
public class MensaFeedCBMain : MensaFeed
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="MensaFeedCBMain" /> class.
/// </summary>
@@ -22,5 +24,7 @@ namespace CampusAppWP8.Feed.Mensa
{
this.Title = AppResources.Campus_CBMain;
}
#endregion
}
}

View File

@@ -14,6 +14,8 @@ namespace CampusAppWP8.Feed.Mensa
/// </summary>
public class MensaFeedCBNorth : MensaFeed
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="MensaFeedCBNorth" /> class.
/// </summary>
@@ -22,5 +24,7 @@ namespace CampusAppWP8.Feed.Mensa
{
this.Title = AppResources.Campus_CBNorth;
}
#endregion
}
}

View File

@@ -14,6 +14,8 @@ namespace CampusAppWP8.Feed.Mensa
/// </summary>
public class MensaFeedCBSouth : MensaFeed
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="MensaFeedCBSouth" /> class.
/// </summary>
@@ -22,5 +24,7 @@ namespace CampusAppWP8.Feed.Mensa
{
this.Title = AppResources.Campus_CBSouth;
}
#endregion
}
}

View File

@@ -14,6 +14,8 @@ namespace CampusAppWP8.Feed.Mensa
/// </summary>
public class MensaFeedSBFMain : MensaFeed
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="MensaFeedSBFMain" /> class.
/// </summary>
@@ -22,5 +24,7 @@ namespace CampusAppWP8.Feed.Mensa
{
this.Title = AppResources.Campus_SFBMain;
}
#endregion
}
}

View File

@@ -19,6 +19,8 @@ namespace CampusAppWP8.Feed.News
/// </summary>
public class NewsFeed : XmlModel<RSSViewModel>
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="NewsFeed" /> class.
/// </summary>
@@ -36,6 +38,10 @@ namespace CampusAppWP8.Feed.News
}
}
#endregion
#region Method
/// <summary>
/// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>
/// </summary>
@@ -110,5 +116,7 @@ namespace CampusAppWP8.Feed.News
{
return Utilities.DayDifference(Utilities.DifferenceType.Less, lastModified, 1.0);
}
#endregion
}
}

View File

@@ -36,8 +36,6 @@ namespace CampusAppWP8.Feed.Openinghours
#region Method
#region Private
/// <summary>
/// Method check if the FeedModel is up-to-date
/// </summary>
@@ -114,7 +112,5 @@ namespace CampusAppWP8.Feed.Openinghours
}
#endregion
#endregion
}
}

View File

@@ -36,8 +36,6 @@ namespace CampusAppWP8.Feed.StudentCouncil
#region Method
#region Private
/// <summary>
/// Method check if the FeedModel is up-to-date
/// </summary>
@@ -82,7 +80,5 @@ namespace CampusAppWP8.Feed.StudentCouncil
}
#endregion
#endregion
}
}

View File

@@ -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;
/// <summary>Course Feed.</summary>

View File

@@ -15,14 +15,13 @@ namespace CampusAppWP8.File.Departments
/// <summary>
/// Feed object to handle favorite department feeds.
/// </summary>
public class DepartmentFavoriteFile: XmlModel<DepartmentModel>
public class DepartmentFavoriteFile : XmlModel<DepartmentModel>
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="DepartmentFavoriteFeed" /> class.
/// </summary>
/// <param name="autoLoad">automatic loading of the data</param>
/// <summary>Initializes a new instance of the DepartmentFavoriteFile class.</summary>
/// <remarks>Stubbfel, 12.09.2013.</remarks>
/// <param name="autoLoad">(Optional) the automatic load.</param>
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
/// <summary>
/// Method implement CheckIsModelUpToDate()-Method <see cref="Pages"/>.
/// </summary>
@@ -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
}

View File

@@ -16,9 +16,15 @@ namespace CampusAppWP8.File.Exams
/// <remarks>Stubbfel, 03.09.2013.</remarks>
public class ExamFile : BinaryModel
{
#region Member
/// <summary>The storage file.</summary>
private StorageFile storageFile;
#endregion
#region Constructor
/// <summary>Initializes a new instance of the ExamFile class.</summary>
/// <remarks>Stubbfel, 03.09.2013.</remarks>
/// <param name="fileName">Filename of the file.</param>
@@ -31,6 +37,12 @@ namespace CampusAppWP8.File.Exams
this.IsFileUpToDateOnSave += new IsFileUpToDate(this.CheckIsFileUpToDate);
}
#endregion
#region Method
#region public
/// <summary>Executes the file operation.</summary>
/// <remarks>Stubbfel, 03.09.2013.</remarks>
public async void LaunchFile()
@@ -47,6 +59,8 @@ namespace CampusAppWP8.File.Exams
}
}
#endregion
/// <summary>Saves the and launch file.</summary>
/// <remarks>Stubbfel, 03.09.2013.</remarks>
public void SaveAndLaunchFile()
@@ -62,6 +76,8 @@ namespace CampusAppWP8.File.Exams
}
}
#region private
/// <summary>Check is model up to date.</summary>
/// <remarks>Stubbfel, 03.09.2013.</remarks>
/// <param name="model">The model.</param>
@@ -90,5 +106,9 @@ namespace CampusAppWP8.File.Exams
return true;
}
#endregion
#endregion
}
}

View File

@@ -16,6 +16,8 @@ using CampusAppWP8.Resources;
/// <remarks>Stubbfel, 09.09.2013.</remarks>
public class PlacesFile : XmlModel<SpsModel>
{
#region Constructor
/// <summary>Initializes a new instance of the PlacesFile class.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
public PlacesFile()
@@ -25,6 +27,10 @@ using CampusAppWP8.Resources;
this.IsFileUpToDateOnSave += new IsFileUpToDate(this.CheckIsFileUpToDate);
}
#endregion
#region Method
/// <summary>Check is file up to date.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
/// <param name="model"> The model.</param>
@@ -39,5 +45,7 @@ using CampusAppWP8.Resources;
return false;
}
#endregion
}
}

View File

@@ -11,9 +11,13 @@ namespace CampusAppWP8
/// <summary>Localized strings. </summary>
public class LocalizedStrings
{
#region Member
/// <summary>The localized resources. </summary>
private static AppResources localizedResources = new AppResources();
#region Property
/// <summary>Gets the localized resources. </summary>
/// <value>The localized resources. </value>
public AppResources LocalizedResources
@@ -21,7 +25,9 @@ namespace CampusAppWP8
get
{
return localizedResources;
}
}
}
#endregion
}
}

View File

@@ -12,6 +12,8 @@ namespace CampusAppWP8.Model
/// <remarks>Stubbfel, 03.09.2013.</remarks>
public abstract class BinaryModel : MainModel<byte[]>
{
#region Constructor
/// <summary>Initializes a new instance of the BinaryModel class.</summary>
/// <remarks>Stubbfel, 03.09.2013.</remarks>
/// <param name="modelType">Type of the model.</param>
@@ -31,6 +33,10 @@ namespace CampusAppWP8.Model
{
}
#endregion
#region Method
/// <summary>Deserialize model.</summary>
/// <remarks>Stubbfel, 03.09.2013.</remarks>
/// <param name="modelData">Information describing the model.</param>
@@ -58,5 +64,7 @@ namespace CampusAppWP8.Model
{
return this.Model;
}
#endregion
}
}

View File

@@ -17,9 +17,15 @@ namespace CampusAppWP8.Model.Campusmap
/// </summary>
public class CBMainMapModel : MapModel
{
#region Member
/// <summary>Variable for the identify of the campus.</summary>
private static readonly string Campus = ((int)CampusAppWP8.Model.Setting.UserProfilModel.Campus.CB_MAIN).ToString();
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="CBMainMapModel" /> class.
/// </summary>
@@ -37,6 +43,10 @@ namespace CampusAppWP8.Model.Campusmap
this.GeoOffsetY = 51.766548;
}
#endregion
#region Method
/// <summary>Loads the spatial./.</summary>
/// <remarks>Stubbfel, 19.08.2013.</remarks>
protected override void LoadSpatials()
@@ -52,5 +62,7 @@ namespace CampusAppWP8.Model.Campusmap
}
}
}
#endregion
}
}

View File

@@ -15,6 +15,8 @@ namespace CampusAppWP8.Model.Campusmap
/// <remarks>Stubbfel, 27.08.2013.</remarks>
public class CurrentPositionPinModel : MapPinModel
{
#region Constructor
/// <summary>Initializes a new instance of the CurrentPositionPinModel class.</summary>
/// <remarks>Stubbfel, 27.08.2013.</remarks>
public CurrentPositionPinModel()
@@ -25,5 +27,7 @@ namespace CampusAppWP8.Model.Campusmap
this.PinImageOffsetX = -25;
this.PinImageOffsetY = -34;
}
#endregion
}
}

View File

@@ -90,6 +90,8 @@ namespace CampusAppWP8.Model.Campusmap
#region Methods
#region public
/// <summary>
/// Method calculate the coordinates of ScrollToOffsets point
/// </summary>
@@ -218,12 +220,20 @@ namespace CampusAppWP8.Model.Campusmap
return this.ConverToMapPoint(point.X, point.Y);
}
#endregion
#region protected
/// <summary>Loads the spatial./</summary>
/// <remarks>Stubbfel, 19.08.2013.</remarks>
protected virtual void LoadSpatials()
{
}
#endregion
#region private
/// <summary>Creates a pin.</summary>
/// <remarks>Stubbfel, 27.08.2013.</remarks>
/// <param name="type">The type.</param>
@@ -246,6 +256,9 @@ namespace CampusAppWP8.Model.Campusmap
return pin;
}
#endregion
#endregion
}
}

View File

@@ -15,6 +15,8 @@ namespace CampusAppWP8.Model.Campusmap
/// <remarks>Stubbfel, 27.08.2013.</remarks>
public class SearchPlacePinModel : MapPinModel
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="SearchPlacePinModel" /> class.
/// </summary>
@@ -27,5 +29,7 @@ namespace CampusAppWP8.Model.Campusmap
this.PinImageOffsetX = -25;
this.PinImageOffsetY = -27;
}
#endregion
}
}

View File

@@ -15,6 +15,8 @@ namespace CampusAppWP8.Model.Departments
/// </summary>
public class ChairModel
{
#region Member
/// <summary>
/// German name of the chair.
/// </summary>
@@ -30,6 +32,10 @@ namespace CampusAppWP8.Model.Departments
/// </summary>
private string nameEN = string.Empty;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="ChairModel" /> class.
/// </summary>
@@ -37,6 +43,10 @@ namespace CampusAppWP8.Model.Departments
{
}
#endregion
#region Property
/// <summary>
/// Initializes a new instance of the <see cref="ChairModel" /> class.
/// </summary>
@@ -124,5 +134,7 @@ namespace CampusAppWP8.Model.Departments
}
}
}
#endregion
}
}

View File

@@ -17,6 +17,8 @@ namespace CampusAppWP8.Model.Departments
[XmlRoot("root")]
public class DepartmentModel
{
#region Member
/// <summary>
/// Object to store the time when the instance was created.
/// </summary>
@@ -27,6 +29,10 @@ namespace CampusAppWP8.Model.Departments
/// </summary>
private ObservableCollection<FacultyModel> faculties;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="DepartmentModel" /> class.
/// </summary>
@@ -36,6 +42,10 @@ namespace CampusAppWP8.Model.Departments
this.createTime = DateTime.Now;
}
#endregion
#region Property
/// <summary>
/// Gets or sets the faculty list.
/// </summary>
@@ -68,6 +78,10 @@ namespace CampusAppWP8.Model.Departments
}
}
#endregion
#region Method
/// <summary>
/// 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
}
}

View File

@@ -16,6 +16,8 @@ namespace CampusAppWP8.Model.Departments
/// </summary>
public class FacultyModel
{
#region Member
/// <summary>
/// Object to hold the information of the chair containing to this
/// faculty.
@@ -32,6 +34,10 @@ namespace CampusAppWP8.Model.Departments
/// </summary>
private bool hasChanged = false;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="FacultyModel" /> class.
/// </summary>
@@ -40,6 +46,10 @@ namespace CampusAppWP8.Model.Departments
this.chairs = new ObservableCollection<ChairModel>();
}
#endregion
#region Property
/// <summary>
/// Initializes a new instance of the <see cref="FacultyModel" /> class.
/// </summary>
@@ -126,6 +136,10 @@ namespace CampusAppWP8.Model.Departments
return retValue;
}
#endregion
#region Method
/// <summary>
/// Add a chair to the list, if it does not already exist.
/// </summary>
@@ -234,5 +248,7 @@ namespace CampusAppWP8.Model.Departments
return retValue;
}
#endregion
}
}

View File

@@ -17,11 +17,17 @@ namespace CampusAppWP8.Model.Exams
[XmlRoot("links")]
public class ExamListModel
{
#region Property
/// <summary>Gets or sets the exams.</summary>
/// <value>The exams.</value>
[XmlElement("link")]
public ObservableCollection<ExamModel> Exams { get; set; }
#endregion
#region Property
/// <summary>Creates course list.</summary>
/// <remarks>Stubbfel, 10.09.2013.</remarks>
/// <returns>The new course list.</returns>
@@ -40,5 +46,7 @@ namespace CampusAppWP8.Model.Exams
return result;
}
#endregion
}
}

View File

@@ -14,6 +14,8 @@ namespace CampusAppWP8.Model.Exams
/// <remarks>Stubbfel, 02.09.2013.</remarks>
public class ExamModel
{
#region Property
/// <summary>Gets or sets the course number.</summary>
/// <value>The course number.</value>
[XmlAttribute("stg")]
@@ -63,5 +65,7 @@ namespace CampusAppWP8.Model.Exams
return StringManager.StripHTML(this.CourseText + " (" + this.Type + "/" + this.Version + ")");
}
}
#endregion
}
}

View File

@@ -14,6 +14,8 @@ namespace CampusAppWP8.Model.GeoDb
/// <remarks>Stubbfel, 19.08.2013.</remarks>
public class PlaceInformation : IEquatable<PlaceInformation>
{
#region Property
/// <summary>Gets or sets the name of the information.</summary>
/// <value>The name of the information.</value>
[XmlAttribute("placeInformationName")]
@@ -24,6 +26,10 @@ namespace CampusAppWP8.Model.GeoDb
[XmlText]
public string InformationValue { get; set; }
#endregion
#region Method
/// <summary>Tests if this PlaceInformation is considered equal to another.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
/// <param name="other">The place information to compare to this object.</param>
@@ -37,5 +43,7 @@ namespace CampusAppWP8.Model.GeoDb
return false;
}
#endregion
}
}

View File

@@ -23,6 +23,8 @@ namespace CampusAppWP8.Model.GeoDb
/// </summary>
public class PlaceModel : IEquatable<PlaceModel>
{
#region Property
/// <summary>
/// Gets or sets the placeId
/// </summary>
@@ -85,6 +87,10 @@ namespace CampusAppWP8.Model.GeoDb
[XmlElement("placeService")]
public ObservableCollection<PlaceService> Services { get; set; }
#endregion
#region Method
/// <summary>Converts this object to a nfc string.</summary>
/// <remarks>Stubbfel, 21.08.2013.</remarks>
/// <returns>This object as a string.</returns>
@@ -108,9 +114,9 @@ namespace CampusAppWP8.Model.GeoDb
return false;
}
/// <summary>Adds a place informations.</summary>
/// <summary>Adds a place information.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
/// <param name="placeInformations">The place informations.</param>
/// <param name="placeInformations">The place information.</param>
public void AddPlaceInformations(List<PlaceInformation> placeInformations)
{
foreach (PlaceInformation info in placeInformations)
@@ -200,5 +206,7 @@ namespace CampusAppWP8.Model.GeoDb
return true;
}
#endregion
}
}

View File

@@ -15,6 +15,8 @@ namespace CampusAppWP8.Model.GeoDb
/// <remarks>Stubbfel, 19.08.2013.</remarks>
public class PlaceService : IEquatable<PlaceService>
{
#region Property
/// <summary>Gets or sets the name of the service.</summary>
/// <value>The name of the service.</value>
[XmlAttribute("placeServiceName")]
@@ -30,6 +32,10 @@ namespace CampusAppWP8.Model.GeoDb
[XmlElement("request")]
public string Request { get; set; }
#endregion
#region Method
/// <summary>Gets the URL string.</summary>
/// <value>The URL string.</value>
public string URLString
@@ -53,5 +59,7 @@ namespace CampusAppWP8.Model.GeoDb
return false;
}
#endregion
}
}

View File

@@ -19,6 +19,8 @@ namespace CampusAppWP8.Model.GeoDb
[XmlRoot("root")]
public class SpsModel
{
#region Constructor
/// <summary>Initializes a new instance of the SpsModel class.</summary>
/// <remarks>Stubbfel, 20.08.2013.</remarks>
public SpsModel()
@@ -27,16 +29,24 @@ namespace CampusAppWP8.Model.GeoDb
this.Places = new ObservableCollection<PlaceModel>();
}
#endregion
#region Property
/// <summary>
/// Gets or sets a list of places
/// </summary>
[XmlElement("place")]
public ObservableCollection<PlaceModel> Places { get; set; }
/// <summary>Gets a value indicating whether this object has changed.</summary>
/// <summary>Gets or sets a value indicating whether this object has changed.</summary>
/// <value>true if this object has changed, false if not.</value>
public bool HasChanged { get; set; }
#endregion
#region Method
/// <summary>Gets places by information.</summary>
/// <remarks>Stubbfel, 19.08.2013.</remarks>
/// <param name="query"> The query.</param>
@@ -107,6 +117,7 @@ namespace CampusAppWP8.Model.GeoDb
this.Places.Add(place);
}
}
this.HasChanged = true;
}
@@ -182,7 +193,7 @@ namespace CampusAppWP8.Model.GeoDb
/// <summary>Filter by PID.</summary>
/// <remarks>Stubbfel, 11.09.2013.</remarks>
/// <param name="pidList">List of pids.</param>
/// <returns>flitered list of places</returns>
/// <returns>filtered list of places.</returns>
public List<PlaceModel> FilterByPid(List<string> pidList)
{
List<PlaceModel> fitlerList = new List<PlaceModel>();
@@ -196,5 +207,7 @@ namespace CampusAppWP8.Model.GeoDb
return fitlerList;
}
#endregion
}
}

View File

@@ -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;
/// <summary>
/// Model for a Activity
@@ -19,6 +19,21 @@ namespace CampusAppWP8.Model.Lecture
{
#region Members
/// <summary>The activity icon name lecture.</summary>
private const string ActivityIconNameLecture = "Vorlesung";
/// <summary>The activity icon name seminar.</summary>
private const string ActivityIconNameSeminar = "Seminar";
/// <summary>The activity icon name practice.</summary>
private const string ActivityIconNamePract = "Übung";
/// <summary>The activity icon name lab.</summary>
private const string ActivityIconNameLab = "Labor";
/// <summary>The activity icon name exam.</summary>
private const string ActivityIconNameExam = "Prüfung";
/// <summary>
/// List of lecturer
/// </summary>
@@ -42,22 +57,8 @@ namespace CampusAppWP8.Model.Lecture
/// <summary>URL of the icon.</summary>
private string iconUrl;
/// <summary>The activity icon name lecture.</summary>
private const string ActivityIconNameLecture = "Vorlesung";
/// <summary>The activity icon name seminar.</summary>
private const string ActivityIconNameSeminar = "Seminar";
/// <summary>The activity icon name pract.</summary>
private const string ActivityIconNamePract = "Übung";
/// <summary>The activity icon name lab.</summary>
private const string ActivityIconNameLab = "Labor";
/// <summary>The activity icon name exam.</summary>
private const string ActivityIconNameExam = "Prüfung";
#endregion
#region Constructor
/// <summary>
@@ -217,6 +218,8 @@ namespace CampusAppWP8.Model.Lecture
#region Methods
#region public
/// <summary>
/// Method create a formatted string of the LecturerList
/// </summary>
@@ -245,6 +248,10 @@ namespace CampusAppWP8.Model.Lecture
this.CourseString = StringManager.RemoveNewLine(result);
}
#endregion
#region private
/// <summary>Creates icon URL.</summary>
/// <remarks>Stubbfel, 12.09.2013.</remarks>
private void CreateIconUrl()
@@ -278,5 +285,7 @@ namespace CampusAppWP8.Model.Lecture
}
#endregion
#endregion
}
}

View File

@@ -13,6 +13,8 @@ namespace CampusAppWP8.Model.Lecture
/// </summary>
public class LectureCourse
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="LectureCourse" /> class.
/// </summary>
@@ -20,10 +22,16 @@ namespace CampusAppWP8.Model.Lecture
{
}
#endregion
#region Property
/// <summary>
/// Gets or sets the title of the course
/// </summary>
[XmlElement("bezeichnung")]
public string Title { get; set; }
#endregion
}
}

View File

@@ -14,6 +14,8 @@ namespace CampusAppWP8.Model.Lecture
/// </summary>
public class LectureDate
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="LectureDate" /> class.
/// </summary>
@@ -21,6 +23,10 @@ namespace CampusAppWP8.Model.Lecture
{
}
#endregion
#region Property
/// <summary>
/// Gets or sets WeekDay
/// </summary>
@@ -62,5 +68,7 @@ namespace CampusAppWP8.Model.Lecture
/// </summary>
[XmlElement("enddatum")]
public string EndDate { get; set; }
#endregion
}
}

View File

@@ -14,6 +14,8 @@ namespace CampusAppWP8.Model.Lecture
/// </summary>
public class LectureLecturer
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="LectureLecturer" /> class.
/// </summary>
@@ -21,6 +23,10 @@ namespace CampusAppWP8.Model.Lecture
{
}
#endregion
#region Property
/// <summary>
/// Gets or sets the FirstName of a lecturer
/// </summary>
@@ -45,6 +51,10 @@ namespace CampusAppWP8.Model.Lecture
[XmlAttribute("zustaendigkeit")]
public string Responsibility { get; set; }
#endregion
#region Method
/// <summary>
/// Method overrides the base ToString() and create an formatted string of the lecturer
/// </summary>
@@ -68,5 +78,7 @@ namespace CampusAppWP8.Model.Lecture
return result;
}
#endregion
}
}

View File

@@ -20,6 +20,8 @@ namespace CampusAppWP8
/// <typeparam name="T">model type</typeparam>
public abstract class MainModel<T>
{
#region Member
/// <summary>
/// File object.
/// </summary>
@@ -55,6 +57,10 @@ namespace CampusAppWP8
/// </summary>
private Uri paramizedUri = null;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="MainModel{T}" /> class.
/// </summary>
@@ -87,6 +93,10 @@ namespace CampusAppWP8
}
}
#endregion
#region Events
/// <summary>
/// Delegate of the OnIO callback function.
/// </summary>
@@ -174,6 +184,10 @@ namespace CampusAppWP8
/// </summary>
public event IsModelUpToDate IsModelUpToDateOnSave = null;
#endregion
#region Enum
/// <summary>
/// Specifies the I/O type of the model.
/// </summary>
@@ -213,6 +227,10 @@ namespace CampusAppWP8
FORCE_WEB = 2
}
#endregion
#region Property
/// <summary>
/// Gets or sets the Model.
/// </summary>
@@ -229,6 +247,12 @@ namespace CampusAppWP8
}
}
#endregion
#region Method
#region public
/// <summary>
/// Forces a update from web.
/// </summary>
@@ -412,6 +436,10 @@ namespace CampusAppWP8
this.paramizedUri = null;
}
#endregion
#region protected
/// <summary>
/// Abstract declaration of the model deserialize function.
/// </summary>
@@ -457,6 +485,10 @@ namespace CampusAppWP8
return retValue;
}
#endregion
#region private
/// <summary>
/// Initialize the class. Is called by the constructors.
/// </summary>
@@ -596,5 +628,9 @@ namespace CampusAppWP8
return retValue;
}
#endregion
#endregion
}
}

View File

@@ -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;
/// <summary>
/// Model for menu

View File

@@ -14,6 +14,8 @@ namespace CampusAppWP8.Model.Person
/// <remarks>Stubbfel, 05.09.2013.</remarks>
public class PersonFunctionModel
{
#region Member
/// <summary>The first tel.</summary>
private string tel1;
@@ -35,6 +37,10 @@ namespace CampusAppWP8.Model.Person
/// <summary>The building.</summary>
private string building;
#endregion
#region Property
/// <summary>Gets or sets the tel 1.</summary>
/// <value>The tel 1.</value>
[XmlAttribute("telefon")]
@@ -175,5 +181,7 @@ namespace CampusAppWP8.Model.Person
/// <summary>Gets or sets zero-based index of the function.</summary>
/// <value>The function index.</value>
public int FunctionIndex { get; set; }
#endregion
}
}

View File

@@ -17,11 +17,17 @@ namespace CampusAppWP8.Model.Person
[XmlRoot("Uebersicht")]
public class PersonListModel
{
#region Property
/// <summary>Gets or sets the persons.</summary>
/// <value>The persons.</value>
[XmlElement("person")]
public ObservableCollection<PersonModel> Persons { get; set; }
#endregion
#region Method
/// <summary>Sets person identifier to function.</summary>
/// <remarks>Stubbfel, 05.09.2013.</remarks>
public void SetPersonIdToFunction()
@@ -75,5 +81,7 @@ namespace CampusAppWP8.Model.Person
this.Persons.Remove(removePerson);
}
}
#endregion
}
}

View File

@@ -15,6 +15,8 @@ namespace CampusAppWP8.Model.Person
/// <remarks>Stubbfel, 05.09.2013.</remarks>
public class PersonModel
{
#region Member
/// <summary>The akadgrad.</summary>
private string akadgrad;
@@ -30,6 +32,10 @@ namespace CampusAppWP8.Model.Person
/// <summary>The functions.</summary>
private ObservableCollection<PersonFunctionModel> functions;
#endregion
#region Property
/// <summary>Gets or sets the identifier.</summary>
/// <value>The identifier.</value>
[XmlAttribute("id")]
@@ -137,6 +143,10 @@ namespace CampusAppWP8.Model.Person
}
}
#endregion
#region Method
/// <summary>Sets person identifier to function.</summary>
/// <remarks>Stubbfel, 05.09.2013.</remarks>
public void SetPersonIdToFunction()
@@ -153,5 +163,7 @@ namespace CampusAppWP8.Model.Person
function.FunctionIndex = index++;
}
}
#endregion
}
}

View File

@@ -21,6 +21,8 @@ namespace CampusAppWP8.Model.RSS
/// </summary>
private ObservableCollection<RSSModel> item;
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="RSSChannelModel" /> class.
/// </summary>
@@ -30,6 +32,10 @@ namespace CampusAppWP8.Model.RSS
this.item.CollectionChanged += new NotifyCollectionChangedEventHandler(this.OnListChanged);
}
#endregion
#region Property
/// <summary>
/// Gets or sets the RSS feed item list.
/// </summary>
@@ -50,6 +56,10 @@ namespace CampusAppWP8.Model.RSS
}
}
#endregion
#region Method
/// <summary>
/// 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
}
}

View File

@@ -16,6 +16,8 @@ namespace CampusAppWP8.Model.RSS
/// </summary>
public class RSSModel
{
#region Member
/// <summary>
/// Index of this object.
/// </summary>
@@ -41,6 +43,10 @@ namespace CampusAppWP8.Model.RSS
/// </summary>
private string link;
#endregion
#region Property
/// <summary>
/// Gets or sets the title of the feed.
/// </summary>
@@ -131,7 +137,7 @@ namespace CampusAppWP8.Model.RSS
/// <summary>
/// Gets the time of the timestamp as string.
/// example: 12:56 Uhr.
/// example: 12:56.
/// </summary>
public string Time
{
@@ -177,6 +183,12 @@ namespace CampusAppWP8.Model.RSS
}
}
#endregion
#region Method
#region public
/// <summary>
/// Comparing function for DateTime timestamps.
/// (currently unused)
@@ -196,6 +208,10 @@ namespace CampusAppWP8.Model.RSS
}
}
#endregion
#region private
/// <summary>
/// Remove or transform html-unicode specific tags into ASCII.
/// </summary>
@@ -252,5 +268,9 @@ namespace CampusAppWP8.Model.RSS
return retValue.ToString();
}
#endregion
#endregion
}
}

View File

@@ -17,6 +17,8 @@ namespace CampusAppWP8.Model.RSS
[XmlRoot("root")]
public class RSSViewModel
{
#region Member
/// <summary>
/// Object to store the time when the instance was created.
/// </summary>
@@ -26,7 +28,11 @@ namespace CampusAppWP8.Model.RSS
/// Channel list for the RSS feeds.
/// </summary>
private ObservableCollection<RSSChannelModel> channel;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="RSSViewModel" /> class.
/// </summary>
@@ -36,6 +42,10 @@ namespace CampusAppWP8.Model.RSS
this.createTime = DateTime.Now;
}
#endregion
#region Property
/// <summary>
/// Gets or sets the channel list.
/// </summary>
@@ -67,5 +77,7 @@ namespace CampusAppWP8.Model.RSS
return this.createTime;
}
}
#endregion
}
}

View File

@@ -15,6 +15,8 @@ namespace CampusAppWP8.Model.Setting
/// </summary>
public class AppSettings
{
#region Property
/// <summary>
/// Gets or sets a value indicating whether the GeoWatch-Flag
/// </summary>
@@ -106,5 +108,7 @@ namespace CampusAppWP8.Model.Setting
App.SaveToAppState<bool>(Constants.AppSetting_OnlyWifi, value);
}
}
#endregion
}
}

View File

@@ -192,8 +192,6 @@ namespace CampusAppWP8.Model.Setting
#region Methods
#region private
/// <summary>
/// Methods check if a value could be a valid semester
/// </summary>
@@ -225,7 +223,5 @@ namespace CampusAppWP8.Model.Setting
}
#endregion
#endregion
}
}

View File

@@ -26,6 +26,7 @@ namespace CampusAppWP8.Model.StudentCouncil
private readonly DateTime createTime;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="StudentCouncilListModel" /> class.

View File

@@ -28,8 +28,6 @@ namespace CampusAppWP8.Model.Utility
#region Method
#region private
/// <summary>
/// Overrides the LoadList-Method <see cref="ListPickerItemListModel"/>
/// </summary>
@@ -42,7 +40,5 @@ namespace CampusAppWP8.Model.Utility
}
#endregion
#endregion
}
}

View File

@@ -10,25 +10,24 @@ namespace CampusAppWP8.Model.Utility
/// <summary>
/// This class is a Model for the URLParameter like GET-Parameter
/// </summary>
public class CleanUrlParamModel:UrlParamModel
public class CleanUrlParamModel : UrlParamModel
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="UrlParamModel" /> class.
/// </summary>
/// <param name="key">the key for the parameter</param>
public CleanUrlParamModel(string key) :base(key)
/// <summary>Initializes a new instance of the CleanUrlParamModel class.</summary>
/// <remarks>Stubbfel, 12.09.2013.</remarks>
/// <param name="key">the key for the parameter.</param>
public CleanUrlParamModel(string key)
: base(key)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="UrlParamModel" /> class.
/// </summary>
/// <param name="key">the key for the parameter</param>>
/// <param name="value">value of the parameter</param>
public CleanUrlParamModel(string key, string value) : base(key,value)
/// <summary>Initializes a new instance of the CleanUrlParamModel class.</summary>
/// <remarks>Stubbfel, 12.09.2013.</remarks>
/// <param name="key"> the key for the parameter.</param>
/// <param name="value">The value.</param>
public CleanUrlParamModel(string key, string value)
: base(key, value)
{
}
#endregion

View File

@@ -17,9 +17,13 @@ namespace CampusAppWP8.Model.Utility
/// </summary>
public class CourseListPickerItemListModel : ListPickerItemListModel
{
#region Member
/// <summary>List of courses.</summary>
private CourseFeed courseList;
#endregion
#region Constructor
/// <summary>
@@ -30,9 +34,7 @@ namespace CampusAppWP8.Model.Utility
}
#endregion
#region Method
#region Events
/// <summary>
@@ -44,9 +46,12 @@ namespace CampusAppWP8.Model.Utility
/// Callback pointer, called after loading.
/// </summary>
public event OnIO OnLoaded = null;
#endregion
#region private
#region Method
#region public
/// <summary>
/// Overrides the LoadList-Method <see cref="ListPickerItemListModel"/>
@@ -66,6 +71,10 @@ namespace CampusAppWP8.Model.Utility
this.CallOnLoaded();
}
}
#endregion
#region private
/// <summary>Fall back list.</summary>
/// <remarks>Stubbfel, 10.09.2013.</remarks>

View File

@@ -13,6 +13,8 @@ namespace CampusAppWP8.Model.Utility
/// <remarks>Stubbfel, 10.09.2013.</remarks>
public class CourseModel : IEquatable<CourseModel>
{
#region Constructor
/// <summary>Initializes a new instance of the CourseModel class.</summary>
/// <remarks>Stubbfel, 10.09.2013.</remarks>
/// <param name="courseNumber">The course number.</param>
@@ -23,6 +25,10 @@ namespace CampusAppWP8.Model.Utility
this.CourseText = courseText;
}
#endregion
#region Property
/// <summary>Gets or sets the course number.</summary>
/// <value>The course number.</value>
public string CourseNumber { get; set; }
@@ -31,6 +37,10 @@ namespace CampusAppWP8.Model.Utility
/// <value>The course text.</value>
public string CourseText { get; set; }
#endregion
#region Method
/// <summary>Tests if this CourseModel is considered equal to another.</summary>
/// <remarks>Stubbfel, 10.09.2013.</remarks>
/// <param name="other">The course model to compare to this object.</param>
@@ -44,5 +54,7 @@ namespace CampusAppWP8.Model.Utility
return false;
}
#endregion
}
}

View File

@@ -28,8 +28,6 @@ namespace CampusAppWP8.Model.Utility
#region Method
#region private
/// <summary>
/// Overrides the LoadList-Method <see cref="ListPickerItemListModel"/>
/// </summary>
@@ -41,7 +39,5 @@ namespace CampusAppWP8.Model.Utility
}
#endregion
#endregion
}
}

View File

@@ -127,7 +127,7 @@ namespace CampusAppWP8.Model.Utility
#endregion
#region private
#region protected
/// <summary>
/// Method load an default list

View File

@@ -12,6 +12,8 @@ namespace CampusAppWP8.Model.Utility
/// </summary>
public class ListPickerItemModel
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="ListPickerItemModel" /> class.
/// </summary>
@@ -30,6 +32,10 @@ namespace CampusAppWP8.Model.Utility
this.Text = text;
}
#endregion
#region Property
/// <summary>
/// Gets or sets the Value of an Item
/// </summary>
@@ -39,5 +45,7 @@ namespace CampusAppWP8.Model.Utility
/// Gets or sets the Text (caption) of an Item
/// </summary>
public string Text { get; set; }
#endregion
}
}

View File

@@ -28,8 +28,6 @@ namespace CampusAppWP8.Model.Utility
#region Method
#region private
/// <summary>
/// Overrides the LoadList-Method <see cref="ListPickerItemListModel"/>
/// </summary>
@@ -40,7 +38,5 @@ namespace CampusAppWP8.Model.Utility
}
#endregion
#endregion
}
}

View File

@@ -28,8 +28,6 @@ namespace CampusAppWP8.Model.Utility
#region Method
#region private
/// <summary>
/// Overrides the LoadList-Method <see cref="ListPickerItemListModel"/>
/// </summary>
@@ -41,7 +39,5 @@ namespace CampusAppWP8.Model.Utility
}
#endregion
#endregion
}
}

View File

@@ -17,6 +17,8 @@ namespace CampusAppWP8.Model
/// <typeparam name="T">model type</typeparam>
public abstract class XmlModel<T> : MainModel<T>
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="XmlModel{T}" /> class.
/// </summary>
@@ -41,6 +43,10 @@ namespace CampusAppWP8.Model
this.ValidRootName = Constants.XMLRootElementName;
}
#endregion
#region Method
/// <summary>
/// Gets or sets for the name of the root-tag
/// </summary>
@@ -85,5 +91,7 @@ namespace CampusAppWP8.Model
return retValue;
}
#endregion
}
}

View File

@@ -35,11 +35,11 @@
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<!-- <ColumnDefinition Width="*"/> -->
<!-- <ColumnDefinition Width="*"/> -->
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<!-- <StackPanel Grid.Column="0">
<!-- <StackPanel Grid.Column="0">
<TextBlock Text="Lat:" />
<TextBox Name="YPoint" Text="51,767747" InputScope="Number" />
</StackPanel>

View File

@@ -24,9 +24,15 @@ namespace CampusAppWP8.Pages.Campusmap
/// <remarks>Stubbfel, 19.08.2013.</remarks>
public partial class CampusMapPage : PhoneApplicationPage
{
#region Member
/// <summary>Variable for the map model.</summary>
private MapModel map;
#endregion
#region Constructor
/// <summary>Initializes a new instance of the <see cref="CampusMapPage" /> class.</summary>
/// <remarks>Stubbfel, 19.08.2013.</remarks>
public CampusMapPage()
@@ -36,6 +42,12 @@ namespace CampusAppWP8.Pages.Campusmap
this.MapCanvas.DataContext = this.map;
}
#endregion
#region Method
#region protected
/// <summary>Methods overrides the OnNavigatedTo-Method.</summary>
/// <remarks>Stubbfel, 19.08.2013.</remarks>
/// <param name="e">some NavigationEventArgs.</param>
@@ -63,6 +75,10 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
#endregion
#region private
/// <summary>Button click method.</summary>
/// <remarks>Stubbfel, 19.08.2013.</remarks>
/// <param name="sender">caller object.</param>
@@ -201,5 +217,9 @@ namespace CampusAppWP8.Pages.Campusmap
this.AddPin(x, y, type, scroll);
ProgressBar.Visibility = Visibility.Collapsed;
}
#endregion
#endregion
}
}

View File

@@ -21,6 +21,8 @@ namespace CampusAppWP8.Pages.Departments
/// </summary>
public partial class DepartmentFavoritePage : PhoneApplicationPage
{
#region Member
/// <summary>
/// Object to store the last clicked chair button.
/// </summary>
@@ -36,6 +38,10 @@ namespace CampusAppWP8.Pages.Departments
/// </summary>
private bool isSourceSet = false;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="DepartmentFavoritePage" /> class.
/// </summary>
@@ -46,6 +52,12 @@ namespace CampusAppWP8.Pages.Departments
this.isNewInstance = true;
}
#endregion
#region Method
#region protected
/// <summary>
/// On navigation to this page.
/// Initialize the list source.
@@ -100,6 +112,10 @@ namespace CampusAppWP8.Pages.Departments
}
}
#endregion
#region private
/// <summary>
/// On clicking on a chair button.
/// Open or close the chair details.
@@ -166,5 +182,9 @@ namespace CampusAppWP8.Pages.Departments
NavigationService.Navigate(new Uri(Constants.PathDepartment_DepartmentInfoPage + "?url=" + infoBtn.Tag.ToString() + "&name=" + chairName, UriKind.Relative));
}
#endregion
#endregion
}
}

View File

@@ -22,6 +22,8 @@ namespace CampusAppWP8.Pages.Departments
/// </summary>
public partial class DepartmentIndexPage : PhoneApplicationPage
{
#region Member
/// <summary>
/// Department/chair feed object, storing the model and data.
/// </summary>
@@ -32,6 +34,10 @@ namespace CampusAppWP8.Pages.Departments
/// </summary>
private static DepartmentFavoriteFile favorite = null;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="DepartmentIndexPage" /> class.
/// </summary>
@@ -61,6 +67,10 @@ namespace CampusAppWP8.Pages.Departments
DepartmentIndexPage.favorite.LoadData();
}
#endregion
#region Property
/// <summary>
/// Gets or sets the feed object.
/// </summary>
@@ -99,6 +109,12 @@ namespace CampusAppWP8.Pages.Departments
}
}
#endregion
#region Method
#region public
/// <summary>
/// Return the feed object of the departments.
/// </summary>
@@ -117,6 +133,10 @@ namespace CampusAppWP8.Pages.Departments
return DepartmentIndexPage.favorite; // DepartmentIndexPage.favorite;
}
#endregion
#region protected
/// <summary>
/// On navigation to this page.
/// Initialize the feed loading.
@@ -146,6 +166,10 @@ namespace CampusAppWP8.Pages.Departments
base.OnNavigatedFrom(e);
}
#endregion
#region private
/// <summary>
/// On orientation changed.
/// </summary>
@@ -230,5 +254,9 @@ namespace CampusAppWP8.Pages.Departments
this.progressBar.Visibility = Visibility.Collapsed;
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
}
#endregion
#endregion
}
}

View File

@@ -16,6 +16,8 @@ namespace CampusAppWP8.Pages.Departments
/// </summary>
public partial class DepartmentInfoPage : PhoneApplicationPage
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="DepartmentInfoPage" /> class.
/// </summary>
@@ -24,6 +26,12 @@ namespace CampusAppWP8.Pages.Departments
this.InitializeComponent();
}
#endregion
#region Method
#region protected
/// <summary>
/// On navigation to this page.
/// Initialize the page headline text.
@@ -44,6 +52,10 @@ namespace CampusAppWP8.Pages.Departments
}
}
#endregion
#region private
/// <summary>
/// On orientation changed.
/// </summary>
@@ -52,5 +64,9 @@ namespace CampusAppWP8.Pages.Departments
private void PhoneApplicationPage_OrientationChanged(object sender, OrientationChangedEventArgs e)
{
}
#endregion
#endregion
}
}

View File

@@ -21,6 +21,8 @@ namespace CampusAppWP8.Pages.Departments
/// </summary>
public partial class DepartmentPage : PhoneApplicationPage
{
#region Member
/// <summary>
/// For checking, if the source of the list is already set.
/// </summary>
@@ -36,6 +38,10 @@ namespace CampusAppWP8.Pages.Departments
/// </summary>
private bool isNewInstance = false;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="DepartmentPage" /> class.
/// </summary>
@@ -46,6 +52,12 @@ namespace CampusAppWP8.Pages.Departments
this.isNewInstance = true;
}
#endregion
#region Method
#region protected
/// <summary>
/// On navigation to this page.
/// Initialize the feed loading.
@@ -118,6 +130,10 @@ namespace CampusAppWP8.Pages.Departments
}
}
#endregion
#region private
/// <summary>
/// On orientation changed.
/// </summary>
@@ -191,5 +207,9 @@ namespace CampusAppWP8.Pages.Departments
NavigationService.Navigate(new Uri(Constants.PathDepartment_DepartmentInfoPage + "?url=" + infoBtn.Tag.ToString() + "&name=" + chairName, UriKind.Relative));
}
#endregion
#endregion
}
}

View File

@@ -23,6 +23,8 @@ namespace CampusAppWP8.Pages.Dev
/// <remarks>Stubbfel, 22.08.2013.</remarks>
public partial class NFC : PhoneApplicationPage
{
#region Member
/// <summary>The device.</summary>
private readonly ProximityDevice device = ProximityDevice.GetDefault();
@@ -32,6 +34,10 @@ namespace CampusAppWP8.Pages.Dev
/// <summary>List of ndefs.</summary>
private List<NDEFMessage> ndefList;
#endregion
#region Constructor
/// <summary>Initializes a new instance of the NFC class.</summary>
/// <remarks>Stubbfel, 22.08.2013.</remarks>
public NFC()
@@ -47,6 +53,12 @@ namespace CampusAppWP8.Pages.Dev
this.actNDEFIndex = 0;
}
#endregion
#region Method
#region protected
/// <summary>Override the OnNavigatedTo method.</summary>
/// <remarks>Stubbfel, 22.08.2013.</remarks>
/// <param name="e">Arguments of navigation.</param>
@@ -56,6 +68,10 @@ namespace CampusAppWP8.Pages.Dev
this.Writecontent.Text = this.ndefList[this.actNDEFIndex].GetContent();
}
#endregion
#region private
/// <summary>Handler, called when the publish.</summary>
/// <remarks>Stubbfel, 22.08.2013.</remarks>
/// <param name="sender"> The sender.</param>
@@ -123,5 +139,9 @@ namespace CampusAppWP8.Pages.Dev
{
this.device.PublishBinaryMessage("NDEF:WriteTag", this.ndefList[this.actNDEFIndex].ToByteArray().AsBuffer(), this.PublishHandler);
}
#endregion
#endregion
}
}

View File

@@ -40,7 +40,7 @@
</VideoBrush>
</Canvas.Background>
</Canvas>
</Grid>
</Grid>

View File

@@ -28,6 +28,8 @@ namespace CampusAppWP8.Pages.Dev
/// </summary>
public partial class QRScanner : PhoneApplicationPage
{
#region Member
/// <summary>The camera object.</summary>
private PhotoCamera cam = null;
@@ -46,6 +48,10 @@ namespace CampusAppWP8.Pages.Dev
/// <summary>true if this object is in autofocus. </summary>
private bool isInAutofocus = false;
#endregion
#region Constructor
/// <summary>Initializes a new instance of the <see cref="QRScanner" /> class. </summary>
public QRScanner()
{
@@ -53,6 +59,12 @@ namespace CampusAppWP8.Pages.Dev
this.barcodeReader = new BarcodeReader();
}
#endregion
#region Method
#region protected
/// <summary>
/// Is called when this page will become the current page of a frame.
/// </summary>
@@ -126,6 +138,10 @@ namespace CampusAppWP8.Pages.Dev
}
}
#endregion
#region private
/// <summary>
/// Event handler. Called by Cam for initialized events.
/// </summary>
@@ -220,5 +236,9 @@ namespace CampusAppWP8.Pages.Dev
System.Threading.Thread.Sleep(1000);
}
}
#endregion
#endregion
}
}

View File

@@ -22,11 +22,17 @@ namespace CampusAppWP8.Pages.Events
/// </summary>
public partial class EventIndexPage : PhoneApplicationPage
{
#region Method
/// <summary>
/// Event Feed object, which contains the RSS models and data.
/// </summary>
private static EventFeed eventFeed = null;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="EventIndexPage" /> class.
/// </summary>
@@ -52,6 +58,10 @@ namespace CampusAppWP8.Pages.Events
EventIndexPage.eventFeed.LoadData(Utilities.GetLoadModus<Model.RSS.RSSViewModel>());
}
#endregion
#region Property
/// <summary>
/// Gets or sets the feed object.
/// </summary>
@@ -71,6 +81,12 @@ namespace CampusAppWP8.Pages.Events
}
}
#endregion
#region Method
#region public
/// <summary>
/// Return the eventFeed object.
/// </summary>
@@ -80,6 +96,10 @@ namespace CampusAppWP8.Pages.Events
return EventIndexPage.eventFeed;
}
#endregion
#region protected
/// <summary>
/// On navigation to this page, creates a FeedEventHandler and load the RSS feed data.
/// </summary>
@@ -104,6 +124,10 @@ namespace CampusAppWP8.Pages.Events
base.OnNavigatedFrom(e);
}
#endregion
#region private
/// <summary>
/// Is called after the RSS feeds are loaded into the eventFeed model.
/// If there was no feed information set to the UI, the feed list
@@ -144,5 +168,9 @@ namespace CampusAppWP8.Pages.Events
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
this.progressBar.Visibility = Visibility.Collapsed;
}
#endregion
#endregion
}
}

View File

@@ -19,7 +19,7 @@
</phone:PhoneApplicationPage.Resources>
<!-- LayoutRoot -->
<Grid x:Name="LayoutRoot" Background="Transparent">
<ProgressBar x:Name="progressBar" VerticalAlignment="Center" HorizontalAlignment="Center" Visibility="Collapsed" IsIndeterminate="True"/>
<!-- Pivotpage -->
<phone:Pivot x:Name="EventPivot" Title="{Binding Path=LocalizedResources.ApplicationTitle, Source={StaticResource LocalizedStrings}}" SelectionChanged="OnPivotSelectionChange">

View File

@@ -25,6 +25,8 @@ namespace CampusAppWP8.Pages.Events
/// </summary>
public partial class EventPage : PhoneApplicationPage
{
#region Method
/// <summary>
/// To checking if the feed source is already set or not.
/// </summary>
@@ -46,6 +48,10 @@ namespace CampusAppWP8.Pages.Events
/// <summary>The is in speech. </summary>
private volatile bool isInSpeech = false;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="EventPage" /> class.
/// </summary>
@@ -71,6 +77,12 @@ namespace CampusAppWP8.Pages.Events
this.isInSpeech = false;
}
#endregion
#region Method
#region protected
/// <summary>
/// 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
/// <summary>
/// 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
}
}

View File

@@ -21,12 +21,18 @@ namespace CampusAppWP8.Pages.Exams
/// <remarks>Stubbfel, 02.09.2013.</remarks>
public partial class Exams : PhoneApplicationPage
{
#region Member
/// <summary>The feed.</summary>
private ExamFeed feed;
/// <summary>The exam file.</summary>
private ExamFile file;
#endregion
#region Constructor
/// <summary>Initializes a new instance of the Exams class.</summary>
/// <remarks>Stubbfel, 02.09.2013.</remarks>
public Exams()
@@ -35,6 +41,12 @@ namespace CampusAppWP8.Pages.Exams
this.InitializeFeed();
}
#endregion
#region Method
#region protected
/// <summary>Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.</summary>
/// <remarks>Stubbfel, 02.09.2013.</remarks>
/// <param name="e">Ein Objekt, das die Ereignisdaten enthält.</param>
@@ -68,6 +80,10 @@ namespace CampusAppWP8.Pages.Exams
}
}
#endregion
#region private
/// <summary>Method initialize the Feed.</summary>
/// <remarks>Stubbfel, 02.09.2013.</remarks>
private void InitializeFeed()
@@ -199,5 +215,9 @@ namespace CampusAppWP8.Pages.Exams
this.file.LoadData();
this.ProgressBar.Visibility = System.Windows.Visibility.Visible;
}
#endregion
#endregion
}
}

View File

@@ -17,6 +17,8 @@ namespace CampusAppWP8.Pages.Lecture
/// </summary>
public partial class ModulWebPage : PhoneApplicationPage
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="ModulWebPage" /> class.
/// </summary>
@@ -24,6 +26,10 @@ namespace CampusAppWP8.Pages.Lecture
{
this.InitializeComponent();
}
#endregion
#region Method
/// <summary>
/// Override the OnNavigatedTo method
@@ -39,5 +45,7 @@ namespace CampusAppWP8.Pages.Lecture
base.OnNavigatedTo(e);
}
#endregion
}
}

View File

@@ -17,6 +17,8 @@ namespace CampusAppWP8.Pages.Lecture
/// </summary>
public partial class ResultDetailPage : PhoneApplicationPage
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="ResultDetailPage" /> class.
/// </summary>
@@ -25,6 +27,11 @@ namespace CampusAppWP8.Pages.Lecture
this.InitializeComponent();
}
#endregion
#region Method
#region protected
/// <summary>
/// Override the OnNavigatedTo method
/// </summary>
@@ -40,6 +47,10 @@ namespace CampusAppWP8.Pages.Lecture
base.OnNavigatedTo(e);
}
#endregion
#region private
/// <summary>
/// Method load a certain Activity from the model
/// </summary>
@@ -53,7 +64,12 @@ namespace CampusAppWP8.Pages.Lecture
activity.CreateLectureString();
activity.CreateCourseString();
this.ContentPanel.DataContext = activity;
}
}
}
#endregion
#endregion
}
}

View File

@@ -21,6 +21,8 @@ namespace CampusAppWP8.Pages.Lecture
/// </summary>
public partial class ResultPage : PhoneApplicationPage
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="ResultPage" /> class.
/// </summary>
@@ -29,6 +31,10 @@ namespace CampusAppWP8.Pages.Lecture
this.InitializeComponent();
}
#endregion
#region Method
/// <summary>
/// Override the OnNavigatedTo method
/// </summary>
@@ -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
}
}

View File

@@ -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;
/// <summary>
/// Class for the LinkPage

View File

@@ -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;
/// <summary>
/// Class for the MensaPage

View File

@@ -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;
/// <summary>
/// Overview page of all news.
/// </summary>
public partial class NewsIndexPage : PhoneApplicationPage
{
#region Member
/// <summary>
/// News Feed object, which contains the RSS models and data.
/// </summary>
private static NewsFeed newsFeed = null;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="NewsIndexPage" /> class.
/// </summary>
@@ -52,6 +58,10 @@ namespace CampusAppWP8.Pages.News
NewsIndexPage.newsFeed.LoadData(Utilities.GetLoadModus<Model.RSS.RSSViewModel>());
}
#endregion
#region Property
/// <summary>
/// Gets or sets the feed object.
/// </summary>
@@ -80,6 +90,12 @@ namespace CampusAppWP8.Pages.News
return NewsIndexPage.newsFeed;
}
#endregion
#region Method
#region protected
/// <summary>
/// On navigation to this page, creates a FeedEventHandler and load the RSS feed data.
/// </summary>
@@ -103,6 +119,11 @@ namespace CampusAppWP8.Pages.News
base.OnNavigatedFrom(e);
}
#endregion
#region private
/// <summary>
/// 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
}
}

View File

@@ -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;
/// <summary>
/// Opening hours page.

View File

@@ -23,9 +23,15 @@ namespace CampusAppWP8.Pages.Person
/// <remarks>Stubbfel, 09.09.2013.</remarks>
public partial class PersonPage : PhoneApplicationPage
{
#region Member
/// <summary>The API.</summary>
private PersonSearchApi api;
#endregion
#region Constructor
/// <summary>Initializes a new instance of the PersonPage class.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
public PersonPage()
@@ -33,6 +39,10 @@ namespace CampusAppWP8.Pages.Person
this.InitializeComponent();
}
#endregion
#region Method
/// <summary>Sends a request.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
/// <param name="sender">Source of the event.</param>
@@ -127,5 +137,7 @@ namespace CampusAppWP8.Pages.Person
saveContactTask.Show();
}
#endregion
}
}

View File

@@ -26,6 +26,7 @@ namespace CampusAppWP8.Pages.PlaceNews
/// <remarks>Stubbfel, 09.09.2013.</remarks>
public partial class PlaceNews : PhoneApplicationPage
{
#region Member
/// <summary>The sps API.</summary>
private SpsApi spsApi;
@@ -38,13 +39,19 @@ namespace CampusAppWP8.Pages.PlaceNews
/// <summary>The places.</summary>
private PlacesFile places;
/// <summary>varaible indicates how many apis are running.</summary>
/// <summary>variable indicates how many apis are running.</summary>
private int waitForApi;
/// <summary>true to force reqest.</summary>
private bool forceReqest;
/// <summary>true to force request.</summary>
private bool forceRequest;
/// <summary>List of search pids.</summary>
private List<string> searchPidList;
#endregion
#region Constructor
/// <summary>Initializes a new instance of the PlaceNews class.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
public PlaceNews()
@@ -53,6 +60,12 @@ namespace CampusAppWP8.Pages.PlaceNews
this.waitForApi = 0;
}
#endregion
#region Method
#region protected
/// <summary>Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
/// <param name="e">Ein Objekt, das die Ereignisdaten enthält.</param>
@@ -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
/// <summary>Initializes the API.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
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<string> infoNames = new List<string>() { Constants.PisInformationName_Name };
List<string> serviceNames = new List<string>() { 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<SpsModel>(Constants.IsolatedStorage_AllPlaces, this.places.Model);
this.forceReqest = false;
this.forceRequest = false;
}
/// <summary>Event handler. Called by UpdateButtonAppBar for click events.</summary>
@@ -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
}
}

View File

@@ -18,13 +18,19 @@ namespace CampusAppWP8.Pages.PlaceNews
/// <remarks>Stubbfel, 09.09.2013.</remarks>
public partial class ShowPad : PhoneApplicationPage
{
#region Constructor
/// <summary>Initializes a new instance of the ShowPad class.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
public ShowPad()
{
InitializeComponent();
this.InitializeComponent();
}
#endregion
#region Method
/// <summary>Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.</summary>
/// <remarks>Stubbfel, 09.09.2013.</remarks>
/// <param name="e">Ein Objekt, das die Ereignisdaten enthält.</param>
@@ -44,5 +50,7 @@ namespace CampusAppWP8.Pages.PlaceNews
base.OnNavigatedTo(e);
}
#endregion
}
}

View File

@@ -15,6 +15,8 @@ namespace CampusAppWP8.Pages.Setting
/// </summary>
public partial class AppSettingPage : PhoneApplicationPage
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="AppSettingPage" /> class.
/// </summary>
@@ -25,6 +27,10 @@ namespace CampusAppWP8.Pages.Setting
OnlyWiFiToggle.IsChecked = Settings.AppSetting.OnlyWifi;
}
#endregion
#region Method
/// <summary>
/// Override the OnNavigatedFrom method
/// </summary>
@@ -37,5 +43,7 @@ namespace CampusAppWP8.Pages.Setting
Settings.AppSetting.OnlyWifi = OnlyWiFiToggle.IsChecked.Value;
}
}
#endregion
}
}

View File

@@ -20,6 +20,8 @@ namespace CampusAppWP8.Pages.Setting
/// </summary>
public partial class UserProfil : PhoneApplicationPage
{
#region Member
/// <summary>
/// Reference of the profileFile
/// </summary>
@@ -28,6 +30,10 @@ namespace CampusAppWP8.Pages.Setting
/// <summary>List of courses.</summary>
private CourseListPickerItemListModel courseList;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="UserProfil" /> class.
/// </summary>
@@ -38,6 +44,12 @@ namespace CampusAppWP8.Pages.Setting
this.LoadListPicker();
}
#endregion
#region Method
#region protected
/// <summary>
/// Override the OnNavigatedFrom method
/// </summary>
@@ -50,6 +62,10 @@ namespace CampusAppWP8.Pages.Setting
}
}
#endregion
#region private
/// <summary>Loads list picker.</summary>
/// <remarks>Stubbfel, 10.09.2013.</remarks>
private void LoadListPicker()
@@ -102,5 +118,9 @@ namespace CampusAppWP8.Pages.Setting
Logger.LogException(e);
}
}
#endregion
#endregion
}
}

View File

@@ -24,9 +24,15 @@ namespace CampusAppWP8.Pages
/// </summary>
public partial class StartPage : PhoneApplicationPage
{
#region Member
/// <summary>List of initialise courses.</summary>
private CourseFeed initCourseList;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="StartPage" /> class.
/// </summary>
@@ -76,6 +82,12 @@ namespace CampusAppWP8.Pages
}
}
#endregion
#region Method
#region protected
/// <summary>
/// Methods overrides the OnNavigatedTo-Method
/// </summary>
@@ -85,6 +97,10 @@ namespace CampusAppWP8.Pages
base.OnNavigatedTo(e);
}
#endregion
#region private
/// <summary>Stores course feed.</summary>
/// <remarks>Stubbfel, 10.09.2013.</remarks>
private void StoreCourseFeed()
@@ -251,5 +267,9 @@ namespace CampusAppWP8.Pages
Settings.AppSetting.GeoWatchEnable = false;
}
}
#endregion
#endregion
}
}

View File

@@ -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;
/// <summary>
/// Class for the StudentCouncilPage

View File

@@ -16,6 +16,8 @@ namespace CampusAppWP8.Pages.Webmail
/// </summary>
public partial class WebmailPage : PhoneApplicationPage
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="WebmailPage" /> class.
/// </summary>
@@ -25,6 +27,10 @@ namespace CampusAppWP8.Pages.Webmail
this.LoadWebmailPage();
}
#endregion
#region Method
/// <summary>
/// Method load WebmailPage
/// </summary>
@@ -32,5 +38,7 @@ namespace CampusAppWP8.Pages.Webmail
{
this.WebmailBrowser.Navigate(new Uri(Constants.UrlWebMail_Addr, UriKind.Absolute));
}
#endregion
}
}

View File

@@ -1,9 +1,26 @@
<StyleCopSettings Version="105">
<GlobalSettings>
<CollectionProperty Name="RecognizedWords">
<Value>akadgrad</Value>
<Value>api</Value>
<Value>apis</Value>
<Value>enum</Value>
<Value>initialise</Value>
<Value>initialises</Value>
<Value>ndef</Value>
<Value>ndefs</Value>
<Value>nfc</Value>
<Value>param</Value>
<Value>pid</Value>
<Value>pids</Value>
<Value>pis</Value>
<Value>prev</Value>
<Value>pss</Value>
<Value>Senftenberg</Value>
<Value>sps</Value>
<Value>Stubbfel</Value>
<Value>uni</Value>
<Value>wifi</Value>
</CollectionProperty>
</GlobalSettings>
</StyleCopSettings>

View File

@@ -15,6 +15,8 @@ namespace CampusAppWP8
/// </summary>
public static class Settings
{
#region Member
/// <summary>
/// reference of the user-profile-file
/// </summary>
@@ -25,6 +27,10 @@ namespace CampusAppWP8
/// </summary>
private static AppSettings appSetting = new AppSettings();
#endregion
#region Property
/// <summary>
/// Gets or sets the user-profile-file
/// </summary>
@@ -62,5 +68,7 @@ namespace CampusAppWP8
}
}
}
#endregion
}
}

View File

@@ -14,11 +14,17 @@ namespace CampusAppWP8
/// </summary>
public class ThemelizedIcons
{
#region Member
/// <summary>
/// Resource object.
/// </summary>
private static Icons themelized = new Icons();
#endregion
#region Property
/// <summary>
/// Gets the resource object.
/// </summary>
@@ -29,5 +35,7 @@ namespace CampusAppWP8
return themelized;
}
}
#endregion
}
}

View File

@@ -18,6 +18,8 @@ namespace CampusAppWP8.Utility
/// </summary>
public class File
{
#region Member
/// <summary>
/// Folder object.
/// </summary>
@@ -28,6 +30,10 @@ namespace CampusAppWP8.Utility
/// </summary>
private string filename = string.Empty;
#endregion
#region Constructor
/// <summary>Initializes a new instance of the <see cref="File" /> class.</summary>
/// <remarks>Stubbfel, 03.09.2013.</remarks>
/// <param name="filename"> file name.</param>
@@ -36,11 +42,21 @@ namespace CampusAppWP8.Utility
this.filename = filename;
}
#endregion
#region Events
/// <summary>
/// Delegation of the write callback function prototype.
/// </summary>
public delegate void WriteCallbackFunc();
#endregion
#region Method
#region public
/// <summary>Read data from file to a string.</summary>
/// <remarks>Stubbfel, 03.09.2013.</remarks>
/// <returns>data string.</returns>
@@ -99,6 +115,10 @@ namespace CampusAppWP8.Utility
return null;
}
#endregion
#region private
/// <summary>
/// Read data synchronous from file.
/// </summary>
@@ -208,5 +228,9 @@ namespace CampusAppWP8.Utility
onSavedCallback();
}
}
#endregion
#endregion
}
}

View File

@@ -14,6 +14,8 @@ namespace CampusAppWP8.Utility
/// </summary>
public class Logger
{
#region Method
/// <summary>
/// Method log a Exception
/// </summary>
@@ -31,5 +33,7 @@ namespace CampusAppWP8.Utility
{
Console.WriteLine(msg);
}
#endregion
}
}

View File

@@ -18,6 +18,8 @@ namespace CampusAppWP8.Utility.Lui.Button
/// <remarks>Stubbfel, 12.09.2013.</remarks>
public class AddPersonButton : System.Windows.Controls.Button
{
#region Member
/// <summary>The person identifier property.</summary>
public static readonly DependencyProperty PersonIdProperty = DependencyProperty.Register("PersonID", typeof(object), typeof(AddPersonButton), new PropertyMetadata(false));
@@ -27,6 +29,10 @@ namespace CampusAppWP8.Utility.Lui.Button
/// <summary>The icon.</summary>
private static BitmapImage icon = new BitmapImage(new Uri(Icons.AddContact, UriKind.Relative));
#endregion
#region Constructor
/// <summary>Initializes a new instance of the AddPersonButton class.</summary>
/// <remarks>Stubbfel, 12.09.2013.</remarks>
public AddPersonButton()
@@ -38,6 +44,10 @@ namespace CampusAppWP8.Utility.Lui.Button
};
}
#endregion
#region Property
/// <summary>Gets or sets the identifier of the person.</summary>
/// <value>The identifier of the person.</value>
public object PersonId
@@ -53,5 +63,7 @@ namespace CampusAppWP8.Utility.Lui.Button
get { return (object)this.GetValue(FunctionIndexProperty); }
set { this.SetValue(FunctionIndexProperty, value); }
}
#endregion
}
}

View File

@@ -15,6 +15,8 @@ namespace CampusAppWP8.Utility.Lui.MessageBoxes
/// </summary>
public class MessageBoxes
{
#region Method
/// <summary>
/// Method show the MessageBox for the GeoWatch-OptIn
/// </summary>
@@ -42,5 +44,7 @@ namespace CampusAppWP8.Utility.Lui.MessageBoxes
{
return MessageBox.Show(text, AppResources.MsgBox_InfoHeader, MessageBoxButton.OK);
}
#endregion
}
}

View File

@@ -13,6 +13,8 @@ namespace CampusAppWP8.Utility.NDEF
/// <remarks>Stubbfel, 21.08.2013.</remarks>
public class NDEFShortRecord : NDEFRecord
{
#region Constructor
/// <summary>Initializes a new instance of the NDEFShortRecord class.</summary>
/// <remarks>Stubbfel, 21.08.2013.</remarks>
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
/// <summary>Converts this NDEFShortRecord to a byte array.</summary>
/// <remarks>Stubbfel, 21.08.2013.</remarks>
/// <returns>This object as a byte[].</returns>
@@ -59,5 +65,7 @@ namespace CampusAppWP8.Utility.NDEF
return array;
}
#endregion
}
}

View File

@@ -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
/// </summary>
public static class Utilities
{
/// <summary>
/// ResetEvent for CampusDetermination
/// </summary>
private static ManualResetEvent waitForCampus = new ManualResetEvent(false);
#region Enums
/// <summary>
/// Comparison types.
@@ -60,6 +56,10 @@ namespace CampusAppWP8.Utility
GreaterEqual
}
#endregion
#region Method
/// <summary>
/// Compares the difference between a specified DateTime and Now
/// and the specified time difference (in Days).
@@ -285,9 +285,9 @@ namespace CampusAppWP8.Utility
}
}
/// <summary>Query if the phone is in the uni network. Method compares only Networkname and Description!</summary>
/// <summary>Query if the phone is in the uni network. Method compares only Network name and Description!</summary>
/// <remarks>Stubbfel, 26.08.2013.</remarks>
/// <returns>true if uni networkavailable, false if not.</returns>
/// <returns>true if uni network is available, false if not.</returns>
public static bool IsUniNetworkAvailable()
{
NetworkInterfaceList networkInterfaceList = new NetworkInterfaceList();
@@ -340,5 +340,7 @@ namespace CampusAppWP8.Utility
return MainModel<T>.ForceType.INVALID;
}
}
#endregion
}
}

Some files were not shown because too many files have changed in this diff Show More