diff --git a/CampusAppWP8/CampusAppWP8/Model/GeoDb/CampusBuildingLayerWp8Model.cs b/CampusAppWP8/CampusAppWP8/Model/GeoDb/CampusBuildingLayerWp8Model.cs index 94a5b0c3..531574a1 100644 --- a/CampusAppWP8/CampusAppWP8/Model/GeoDb/CampusBuildingLayerWp8Model.cs +++ b/CampusAppWP8/CampusAppWP8/Model/GeoDb/CampusBuildingLayerWp8Model.cs @@ -1,17 +1,16 @@ //----------------------------------------------------------------------- -// +// // The MIT License (MIT). Copyright (c) 2013 BTU/IIT. // // Stubbfel -// 15.10.2013 -// Implements the campus building layer model class +// 21.10.2013 +// Implements the campus building layer wp 8 model class //----------------------------------------------------------------------- namespace CampusAppWP8.Model.GeoDb { - - - /// Class is model for buildings of a campus. - /// Stubbfel, 15.10.2013. + /// A data Model for the campus building layer wp 8. + /// Stubbfel, 21.10.2013. + /// public class CampusBuildingLayerWp8Model : CampusAppWPortalLib8.Model.GeoDb.CampusBuildingLayerModel { } diff --git a/CampusAppWP8/CampusAppWP8/Model/GeoDb/CampusBuildingWp8Model.cs b/CampusAppWP8/CampusAppWP8/Model/GeoDb/CampusBuildingWp8Model.cs index 6595b52c..6ba4909f 100644 --- a/CampusAppWP8/CampusAppWP8/Model/GeoDb/CampusBuildingWp8Model.cs +++ b/CampusAppWP8/CampusAppWP8/Model/GeoDb/CampusBuildingWp8Model.cs @@ -1,19 +1,24 @@ //----------------------------------------------------------------------- -// +// // The MIT License (MIT). Copyright (c) 2013 BTU/IIT. // // Stubbfel -// 15.10.2013 +// 21.10.2013 // Implements the campus building model class //----------------------------------------------------------------------- namespace CampusAppWP8.Model.GeoDb { using System.Collections.Generic; - /// Class is model for buildings of a campus. - /// Stubbfel, 15.10.2013. + /// A data Model for the campus building. + /// Stubbfel, 21.10.2013. + /// public class CampusBuildingWp8Model : CampusAppWPortalLib8.Model.GeoDb.CampusBuildingModel { + /// Initializes a new instance of the CampusBuildingWp8Model class. + /// Stubbfel, 21.10.2013. + /// Identifier for the building. + /// The places. public CampusBuildingWp8Model(string buildingId, List places) : base(buildingId, places) { diff --git a/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceWp8Model.cs b/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceWp8Model.cs index 3d3af099..92113a00 100644 --- a/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceWp8Model.cs +++ b/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceWp8Model.cs @@ -1,26 +1,23 @@ //----------------------------------------------------------------------- -// +// // The MIT License (MIT). Copyright (c) 2013 BTU/IIT. // // Stubbfel -// 15.10.2013 -// Implements the place model class +// 21.10.2013 +// Implements the place wp 8 model class //----------------------------------------------------------------------- namespace CampusAppWP8.Model.GeoDb { using System; - using System.Collections.Generic; - using System.Collections.ObjectModel; using System.Device.Location; using System.Globalization; using System.Text.RegularExpressions; - using System.Xml.Serialization; using CampusAppWP8.Resources; using CampusAppWPortalLib8.Utility; - using CampusAppWPortalLib8.Model.GeoDb; /// Model for a place of the SPSService. /// Stubbfel, 15.10.2013. + /// /// public class PlaceWp8Model : CampusAppWPortalLib8.Model.GeoDb.PlaceModel { diff --git a/CampusAppWP8/CampusAppWP8/Model/GeoDb/SpsWp8Model.cs b/CampusAppWP8/CampusAppWP8/Model/GeoDb/SpsWp8Model.cs index 620e7c91..3ef6895c 100644 --- a/CampusAppWP8/CampusAppWP8/Model/GeoDb/SpsWp8Model.cs +++ b/CampusAppWP8/CampusAppWP8/Model/GeoDb/SpsWp8Model.cs @@ -1,21 +1,18 @@ //----------------------------------------------------------------------- -// +// // The MIT License (MIT). Copyright (c) 2013 BTU/IIT. // // Stubbfel -// 15.10.2013 -// Implements the sps model class +// 21.10.2013 +// Implements the sps wp 8 model class //----------------------------------------------------------------------- namespace CampusAppWP8.Model.GeoDb { - using CampusAppWPortalLib8.Model.GeoDb; - using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.Linq; using System.Xml.Serialization; - /// Model for a xml-response of the SPSService. - /// Stubbfel, 15.10.2013. + /// A data Model for the sps wp 8. + /// Stubbfel, 21.10.2013. + /// [XmlRoot("root")] public class SpsWp8Model : CampusAppWPortalLib8.Model.GeoDb.SpsModel { diff --git a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml.cs index fce5730c..92281c60 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml.cs @@ -19,7 +19,6 @@ namespace CampusAppWP8.Pages.Campusmap using System.Windows.Controls; using System.Windows.Input; using System.Windows.Navigation; - using Windows.Networking.Proximity; using CampusAppWP8.File.Places; using CampusAppWP8.Model.Campusmap; using CampusAppWP8.Model.GeoDb; @@ -29,6 +28,7 @@ namespace CampusAppWP8.Pages.Campusmap using CampusAppWP8.Utility.NDEF; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; + using Windows.Networking.Proximity; /// Class for the campusMap page. /// Stubbfel, 19.08.2013. @@ -163,8 +163,7 @@ namespace CampusAppWP8.Pages.Campusmap if (searchPid != null) { - - //this.ShowAllPlacesByPlaceIdAsSearchPin(searchPid); + // this.ShowAllPlacesByPlaceIdAsSearchPin(searchPid); if (place.ParentId.Equals(this.campusMap.CampusId) || place.PlaceId.Equals(this.campusMap.CampusId)) { this.ShowAllPlacesByPlaceIdAsSearchPin(searchPid); @@ -176,7 +175,7 @@ namespace CampusAppWP8.Pages.Campusmap } } - ndefId = this.device.SubscribeForMessage(Constants.NCFMessageType_NDEF, this.NDEFHandler); + this.ndefId = this.device.SubscribeForMessage(Constants.NCFMessageType_NDEF, this.NDEFHandler); } /// Methods overrides the OnNavigatedFrom-Method. @@ -184,12 +183,11 @@ namespace CampusAppWP8.Pages.Campusmap /// protected override void OnNavigatedFrom(NavigationEventArgs e) { - this.device.StopSubscribingForMessage(ndefId); + this.device.StopSubscribingForMessage(this.ndefId); base.OnNavigatedFrom(e); } - #endregion #region private @@ -466,6 +464,7 @@ namespace CampusAppWP8.Pages.Campusmap private void SearchPlaceByNFC_Click(object sender, EventArgs e) { MessageBoxes.ShowMainModelInfoMessageBox(AppResources.ScarNfc_Search); + // this.DefHeader.ProgressVisibility = Visibility.Visible; // this.device.StopSubscribingForMessage(this.ndefId); // this.ndefId = this.device.SubscribeForMessage(Constants.NCFMessageType_NDEF, this.NDEFHandler); @@ -517,7 +516,7 @@ namespace CampusAppWP8.Pages.Campusmap } else { - //this.ShowAllPlacesByPlaceIdAsSearchPin(searchPid); + // this.ShowAllPlacesByPlaceIdAsSearchPin(searchPid); if (place.ParentId.Equals(this.campusMap.CampusId)) { this.ShowAllPlacesByPlaceIdAsSearchPin(searchPid); @@ -549,9 +548,8 @@ namespace CampusAppWP8.Pages.Campusmap { this.DefHeader.ProgressVisibility = Visibility.Collapsed; } - ndefId = this.device.SubscribeForMessage(Constants.NCFMessageType_NDEF, this.NDEFHandler); - - + + this.ndefId = this.device.SubscribeForMessage(Constants.NCFMessageType_NDEF, this.NDEFHandler); } /// Searches for the first places. @@ -648,6 +646,7 @@ namespace CampusAppWP8.Pages.Campusmap { scrollPoint.Y = 0; } + MapScroller.ScrollToVerticalOffset(scrollPoint.Y); MapScroller.ScrollToHorizontalOffset(scrollPoint.X); } @@ -817,6 +816,7 @@ namespace CampusAppWP8.Pages.Campusmap { urlString += "&" + Constants.ParamRoomId + "=" + roomId; } + Uri url = new Uri(urlString as string, UriKind.Relative); this.NavigationService.Navigate(url); } @@ -848,9 +848,9 @@ namespace CampusAppWP8.Pages.Campusmap { this.SearchByText(sender, e); this.MapScroller.Focus(); - } - + } } + #endregion #endregion diff --git a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/RoomListPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/RoomListPage.xaml.cs index ee51d2ad..a6e3446f 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/RoomListPage.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/RoomListPage.xaml.cs @@ -8,6 +8,13 @@ //----------------------------------------------------------------------- namespace CampusAppWP8.Pages.Campusmap { + using System.Collections.Generic; + using System.Linq; + using System.Windows; + using System.Windows.Controls; + using System.Windows.Input; + using System.Windows.Media; + using System.Windows.Navigation; using CampusAppWP8.File.Places; using CampusAppWP8.Model.Campusmap; using CampusAppWP8.Model.GeoDb; @@ -16,13 +23,6 @@ namespace CampusAppWP8.Pages.Campusmap using CampusAppWP8.Utility.Lui.MessageBoxes; using CampusAppWPortalLib8.Model.Utility; using Microsoft.Phone.Controls; - using System.Collections.Generic; - using System.Linq; - using System.Windows; - using System.Windows.Controls; - using System.Windows.Input; - using System.Windows.Media; - using System.Windows.Navigation; /// Class of the RoomListPage. /// Stubbfel, 14.10.2013. diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/CampusBuildingLayerModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/CampusBuildingLayerModel.cs index 78f84d22..de69584a 100644 --- a/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/CampusBuildingLayerModel.cs +++ b/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/CampusBuildingLayerModel.cs @@ -11,21 +11,22 @@ namespace CampusAppWPortalLib8.Model.GeoDb using System.Collections.Generic; using CampusAppWPortalLib8.Resources; - /// Class is model for buildings of a campus. - /// Stubbfel, 15.10.2013. + /// A data Model for the campus building layer. + /// Stubbfel, 21.10.2013. + /// Generic type parameter. PlaceModel public class CampusBuildingLayerModel where V : PlaceModel { #region Constructor + /// Initializes a new instance of the CampusBuildingLayerModel class. + /// Stubbfel, 21.10.2013. public CampusBuildingLayerModel() { } - /// - /// Initializes a new instance of the class. - /// - /// Stubbfel, 15.10.2013. - /// id of the layer. + /// Initializes a new instance of the CampusBuildingLayerModel class. + /// Stubbfel, 21.10.2013. + /// The identifier of the layer. /// list of place which can be room of the layer. public CampusBuildingLayerModel(string layerId, List places) { diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/CampusBuildingModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/CampusBuildingModel.cs index 1f1381da..44903867 100644 --- a/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/CampusBuildingModel.cs +++ b/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/CampusBuildingModel.cs @@ -13,21 +13,23 @@ namespace CampusAppWPortalLib8.Model.GeoDb /// Class is model for buildings of a campus. /// Stubbfel, 15.10.2013. + /// Generic type parameter. CampusBuildingLayerModel + /// Generic type parameter. PlaceModel public class CampusBuildingModel where V : PlaceModel where T : CampusBuildingLayerModel, new() { #region constructor + /// Initializes a new instance of the CampusBuildingModel class. + /// Stubbfel, 21.10.2013. public CampusBuildingModel() { } - /// - /// Initializes a new instance of the class. - /// - /// Stubbfel, 15.10.2013. - /// id of the building. + /// Initializes a new instance of the CampusBuildingModel class. + /// Stubbfel, 21.10.2013. + /// The identifier of the building. /// list of place which can be room of the buildings. public CampusBuildingModel(string buildingId, List places) { @@ -48,12 +50,17 @@ namespace CampusAppWPortalLib8.Model.GeoDb /// The building. public V Building { get; set; } + /// Gets or sets the identifier of the building. + /// The identifier of the building. public string BuildingId { get; set; } #endregion #region method + /// Adds the layers. + /// Stubbfel, 21.10.2013. + /// list of place which can be room of the buildings. public void AddLayers(List places) { if (this.Layers == null) @@ -120,7 +127,6 @@ namespace CampusAppWPortalLib8.Model.GeoDb tmpPlace = layer.Rooms.GetPlaceById(placeId); if (tmpPlace != null) { - return layer.LayerId; } } diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/PlaceModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/PlaceModel.cs index cdde8539..a93a2737 100644 --- a/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/PlaceModel.cs +++ b/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/PlaceModel.cs @@ -11,11 +11,7 @@ namespace CampusAppWPortalLib8.Model.GeoDb using System; using System.Collections.Generic; using System.Collections.ObjectModel; - using System.Globalization; - using System.Text.RegularExpressions; using System.Xml.Serialization; - using CampusAppWPortalLib8.Resources; - using CampusAppWPortalLib8.Utility; /// Model for a place of the SPSService. /// Stubbfel, 15.10.2013. diff --git a/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/SpsModel.cs b/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/SpsModel.cs index c30d03b2..c10a4bb9 100644 --- a/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/SpsModel.cs +++ b/CampusAppWP8/CampusAppWPortalLib8/Model/GeoDb/SpsModel.cs @@ -15,6 +15,7 @@ namespace CampusAppWPortalLib8.Model.GeoDb /// Model for a xml-response of the SPSService. /// Stubbfel, 15.10.2013. + /// Generic type parameter. [XmlRoot("root")] public class SpsModel where T : PlaceModel {