diff --git a/CampusAppWP8/CampusAppWP8/Api/GeoApi/CampusSpsApi.cs b/CampusAppWP8/CampusAppWP8/Api/GeoApi/CampusSpsApi.cs
index f9df631b..4c3246d1 100644
--- a/CampusAppWP8/CampusAppWP8/Api/GeoApi/CampusSpsApi.cs
+++ b/CampusAppWP8/CampusAppWP8/Api/GeoApi/CampusSpsApi.cs
@@ -9,10 +9,10 @@
namespace CampusAppWP8.Api.GeoApi
{
using System;
- using CampusAppWP8.Model.GeoDb;
using CampusAppWP8.Resources;
using CampusAppWP8.Utility;
- using CampusAppWPortalLib8.Model.Utility;
+ using CampusAppWPortalLib8.Model.Utility;
+ using CampusAppWPortalLib8.Model.GeoDb;
/// Class for SPSAPI.
/// Stubbfel, 14.10.2013.
@@ -67,7 +67,7 @@ namespace CampusAppWP8.Api.GeoApi
}
CampusAppWPortalLib8.Model.Settings.Campus campus;
- foreach (PlaceWp8Model place in this.Model.Places)
+ foreach (PlaceModel place in this.Model.Places)
{
if (Enum.TryParse(place.PlaceId, true, out campus))
{
diff --git a/CampusAppWP8/CampusAppWP8/Api/GeoApi/PisApi.cs b/CampusAppWP8/CampusAppWP8/Api/GeoApi/PisApi.cs
index 70387d5d..883b4983 100644
--- a/CampusAppWP8/CampusAppWP8/Api/GeoApi/PisApi.cs
+++ b/CampusAppWP8/CampusAppWP8/Api/GeoApi/PisApi.cs
@@ -10,15 +10,15 @@ namespace CampusAppWP8.Api.GeoApi
{
using System.Collections.Generic;
using CampusAppWP8.Model;
- using CampusAppWP8.Model.GeoDb;
using CampusAppWP8.Resources;
using CampusAppWPortalLib8.Model;
using CampusAppWPortalLib8.Model.Utility;
+ using CampusAppWPortalLib8.Model.GeoDb;
/// Pis api.
/// Stubbfel, 09.09.2013.
///
- public class PisApi : XmlModel
+ public class PisApi : XmlModel
{
#region Constructor
diff --git a/CampusAppWP8/CampusAppWP8/Api/GeoApi/PssApi.cs b/CampusAppWP8/CampusAppWP8/Api/GeoApi/PssApi.cs
index 550561ff..b55511f4 100644
--- a/CampusAppWP8/CampusAppWP8/Api/GeoApi/PssApi.cs
+++ b/CampusAppWP8/CampusAppWP8/Api/GeoApi/PssApi.cs
@@ -10,15 +10,15 @@ namespace CampusAppWP8.Api.GeoApi
{
using System.Collections.Generic;
using CampusAppWP8.Model;
- using CampusAppWP8.Model.GeoDb;
using CampusAppWP8.Resources;
using CampusAppWPortalLib8.Model;
using CampusAppWPortalLib8.Model.Utility;
+ using CampusAppWPortalLib8.Model.GeoDb;
/// Pss api.
/// Stubbfel, 09.09.2013.
///
- public class PssApi : XmlModel
+ public class PssApi : XmlModel
{
#region Constructor
diff --git a/CampusAppWP8/CampusAppWP8/Api/GeoApi/SpsApi.cs b/CampusAppWP8/CampusAppWP8/Api/GeoApi/SpsApi.cs
index ec7d42bf..163c92e0 100644
--- a/CampusAppWP8/CampusAppWP8/Api/GeoApi/SpsApi.cs
+++ b/CampusAppWP8/CampusAppWP8/Api/GeoApi/SpsApi.cs
@@ -10,16 +10,16 @@ namespace CampusAppWP8.Api.GeoApi
{
using System.Collections.Generic;
using CampusAppWP8.Model;
- using CampusAppWP8.Model.GeoDb;
using CampusAppWP8.Resources;
using CampusAppWP8.Utility;
using CampusAppWPortalLib8.Model;
- using CampusAppWPortalLib8.Model.Utility;
+ using CampusAppWPortalLib8.Model.Utility;
+ using CampusAppWPortalLib8.Model.GeoDb;
/// Class for SPSAPI.
/// Stubbfel, 14.10.2013.
///
- public class SpsApi : XmlModel
+ public class SpsApi : XmlModel
{
#region Constructor
diff --git a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj
index d0282db0..8c64dcae 100644
--- a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj
+++ b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj
@@ -118,7 +118,6 @@
-
@@ -127,10 +126,6 @@
-
-
-
-
diff --git a/CampusAppWP8/CampusAppWP8/File/Campusmap/BuildingsMaps.xml b/CampusAppWP8/CampusAppWP8/File/Campusmap/BuildingsMaps.xml
index a7f1afea..311d9b65 100644
--- a/CampusAppWP8/CampusAppWP8/File/Campusmap/BuildingsMaps.xml
+++ b/CampusAppWP8/CampusAppWP8/File/Campusmap/BuildingsMaps.xml
@@ -10,7 +10,7 @@
800
-288
-390
- Point(410, 480)
+ Point(430, 500)
650000
1200000
@@ -24,7 +24,7 @@
800
-252
-390
- Point(215, 355)
+ Point(235, 380)
300000
500000
diff --git a/CampusAppWP8/CampusAppWP8/File/Places/PlacesFile.cs b/CampusAppWP8/CampusAppWP8/File/Places/PlacesFile.cs
index 92d2235c..aa46e92d 100644
--- a/CampusAppWP8/CampusAppWP8/File/Places/PlacesFile.cs
+++ b/CampusAppWP8/CampusAppWP8/File/Places/PlacesFile.cs
@@ -9,14 +9,14 @@
namespace CampusAppWP8.File.Places
{
using CampusAppWP8.Model;
- using CampusAppWP8.Model.GeoDb;
using CampusAppWP8.Resources;
+ using CampusAppWPortalLib8.Model.GeoDb;
using CampusAppWPortalLib8.Utility;
/// Places file.
/// Stubbfel, 09.09.2013.
///
- public class PlacesFile : XmlModel
+ public class PlacesFile : XmlModel
{
#region Constructor
@@ -39,7 +39,7 @@ namespace CampusAppWP8.File.Places
/// The model.
/// Information describing the file.
/// true if it succeeds, false if it fails.
- private bool CheckIsFileUpToDate(SpsWp8Model model, System.IO.FileInfo fileInfo)
+ private bool CheckIsFileUpToDate(SpsModel model, System.IO.FileInfo fileInfo)
{
if (fileInfo == null || !fileInfo.Exists || fileInfo.Length < 1 || (model != null && model.HasChanged))
{
@@ -53,7 +53,7 @@ namespace CampusAppWP8.File.Places
/// Stubbfel, 14.10.2013.
public void FallBackLoad()
{
- SpsWp8Model fallBackModel = XmlManager.DeserializationFileToModel(Constants.FileMap_OfflineMap);
+ SpsModel fallBackModel = XmlManager.DeserializationFileToModel(Constants.FileMap_OfflineMap);
this.Model = fallBackModel;
this.SaveData();
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/BuildingMapModel.cs b/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/BuildingMapModel.cs
index 2748639a..10a55e00 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/BuildingMapModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/BuildingMapModel.cs
@@ -10,10 +10,10 @@ namespace CampusAppWP8.Model.Campusmap.Map
{
using System.Globalization;
using System.Linq;
- using CampusAppWP8.Model.GeoDb;
using CampusAppWP8.Resources;
using CampusAppWPortalLib8.Model.Utility;
using CampusAppWPortalLib8.Utility;
+ using CampusAppWPortalLib8.Model.GeoDb;
/// A data Model for the building map.
/// Stubbfel, 14.10.2013.
@@ -25,8 +25,8 @@ namespace CampusAppWP8.Model.Campusmap.Map
/// The identifier.
public BuildingMapModel(string id)
{
- SpsWp8Model buildings = XmlManager.DeserializationFileToModel(Constants.FileMap_BuildingsMap);
- PlaceWp8Model building = buildings.GetPlaceById(id);
+ SpsModel buildings = XmlManager.DeserializationFileToModel(Constants.FileMap_BuildingsMap);
+ PlaceModel building = buildings.GetPlaceById(id);
if (buildings == null)
{
return;
diff --git a/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/CBMainMapModel.cs b/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/CBMainMapModel.cs
index 0135f757..5d117f87 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/CBMainMapModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/CBMainMapModel.cs
@@ -9,9 +9,9 @@
namespace CampusAppWP8.Model.Campusmap.Map
{
using System.Collections.Generic;
- using CampusAppWP8.Model.GeoDb;
using CampusAppWP8.Resources;
using CampusAppWPortalLib8.Model.Utility;
+ using CampusAppWPortalLib8.Model.GeoDb;
/// Class for the MapModel of the mainCampus of cottbus.
/// Stubbfel, 14.10.2013.
@@ -30,15 +30,15 @@ namespace CampusAppWP8.Model.Campusmap.Map
/// Initializes a new instance of the class.
/// Stubbfel, 14.10.2013.
/// List of places.
- public CBMainMapModel(List placeList)
+ public CBMainMapModel(List placeList)
: base(placeList, CBMainMapModel.Campus)
{
this.ImageSource = Constants.FileMap_CBMainMap;
this.ImageWidth = 2000;
this.ImageHeight = 1425;
this.MapImageOffsetPoint = new MapPoint(-228, -300);
- this.RefPoint = new MapPoint(1335, 775);
- this.ScalePoint = new MapPoint(129483.4123222749, 197648.8919266073);
+ this.RefPoint = new MapPoint(1365, 800);
+ this.ScalePoint = new MapPoint(129483, 197648);
this.GeoOffsetPoint = new MapPoint(14.327159, 51.766548);
}
diff --git a/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/CampusMapModel.cs b/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/CampusMapModel.cs
index 9d66fa9e..b0b79e26 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/CampusMapModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/CampusMapModel.cs
@@ -9,7 +9,7 @@
namespace CampusAppWP8.Model.Campusmap.Map
{
using System.Collections.Generic;
- using CampusAppWP8.Model.GeoDb;
+ using CampusAppWPortalLib8.Model.GeoDb;
/// Class for the CampusMapModel.
/// Stubbfel, 14.10.2013.
@@ -22,7 +22,7 @@ namespace CampusAppWP8.Model.Campusmap.Map
/// Stubbfel, 14.10.2013.
/// list of places.
/// id of the campus.
- public CampusMapModel(List placeList, string campusId)
+ public CampusMapModel(List placeList, string campusId)
{
this.CampusId = campusId;
this.LoadSpatials(placeList);
@@ -50,12 +50,12 @@ namespace CampusAppWP8.Model.Campusmap.Map
/// Loads the spatial./.
/// Stubbfel, 14.10.2013.
///
- protected override void LoadSpatials(List placeList)
+ protected override void LoadSpatials(List placeList)
{
- List campusPlaces = new List();
- this.Spatial = new SpsWp8Model();
+ List campusPlaces = new List();
+ this.Spatial = new SpsModel();
- foreach (PlaceWp8Model place in placeList)
+ foreach (PlaceModel place in placeList)
{
if (place.ParentId.Equals(this.CampusId) || place.PlaceId.Equals(this.CampusId))
{
diff --git a/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/MapWp8Model.cs b/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/MapWp8Model.cs
index 6a40c4bf..4a2dd8aa 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/MapWp8Model.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Campusmap/Maps/MapWp8Model.cs
@@ -14,14 +14,14 @@ namespace CampusAppWP8.Model.Campusmap.Map
using System.Windows.Input;
using System.Windows.Media.Imaging;
using CampusAppWP8.Model.Campusmap.Pin;
- using CampusAppWP8.Model.GeoDb;
using CampusAppWPortalLib8.Model.Campusmap.Pin;
using CampusAppWPortalLib8.Model.Utility;
+ using CampusAppWPortalLib8.Model.GeoDb;
/// This Class manage the properties of a Map.
/// Stubbfel, 14.10.2013.
///
- public class MapWp8Model : CampusAppWPortalLib8.Model.Campusmap.Map.MapModel
+ public class MapWp8Model : CampusAppWPortalLib8.Model.Campusmap.Map.MapModel
{
#region Constructors
@@ -35,7 +35,7 @@ namespace CampusAppWP8.Model.Campusmap.Map
/// Initializes a new instance of the class.
/// Stubbfel, 14.10.2013.
/// list of places.
- public MapWp8Model(List placeList)
+ public MapWp8Model(List placeList)
{
this.IsReady = false;
this.LoadSpatials(placeList);
@@ -49,7 +49,7 @@ namespace CampusAppWP8.Model.Campusmap.Map
/// Delegate for MapInfo.
/// Stubbfel, 14.10.2013.
/// list of places.
- public delegate void MapInfos(List places);
+ public delegate void MapInfos(List places);
/// Event ShowMapInfo.
public event MapInfos ShowMapInfos = null;
@@ -66,11 +66,11 @@ namespace CampusAppWP8.Model.Campusmap.Map
/// The type.
/// (Optional) list of places.
/// image of the pin.
- public override Image AddPin(MapPoint position, PinType type, List places = null)
+ public override Image AddPin(MapPoint position, PinType type, List places = null)
{
Image pinImg = new Image();
MapPinModel pin = this.CreatePin(type, places, pinImg);
- pin.Position = position;
+ pin.Position = position ;
if (pin.ImageSource != null)
{
pinImg.Source = new BitmapImage(new Uri(pin.ImageSource, UriKind.Relative));
@@ -94,7 +94,7 @@ namespace CampusAppWP8.Model.Campusmap.Map
/// list of places.
/// image of the pin.
/// The new pin.
- private MapPinModel CreatePin(PinType type, List places, Image pinImg)
+ private MapPinModel CreatePin(PinType type, List places, Image pinImg)
{
MapPinModel pin;
switch (type)
diff --git a/CampusAppWP8/CampusAppWP8/Model/Campusmap/Pins/ClickAblePlacePinModel.cs b/CampusAppWP8/CampusAppWP8/Model/Campusmap/Pins/ClickAblePlacePinModel.cs
index 729e45cb..acc5f28f 100644
--- a/CampusAppWP8/CampusAppWP8/Model/Campusmap/Pins/ClickAblePlacePinModel.cs
+++ b/CampusAppWP8/CampusAppWP8/Model/Campusmap/Pins/ClickAblePlacePinModel.cs
@@ -8,15 +8,13 @@
//-----------------------------------------------------------------------
namespace CampusAppWP8.Model.Campusmap.Pin
{
- using System.Collections.Generic;
using CampusAppWP8.Model.Campusmap.Map;
- using CampusAppWP8.Model.GeoDb;
- using CampusAppWPortalLib8.Model.Campusmap.Pin;
+ using CampusAppWPortalLib8.Model.Campusmap.Pin;
/// abstract class for click abel bins.
/// Stubbfel, 14.10.2013.
///
- public abstract class ClickAblePlacePinModel : MapPinModel
+ public abstract class ClickAblePlacePinModel : AssocPlacesPin
{
#region property
@@ -24,10 +22,6 @@ namespace CampusAppWP8.Model.Campusmap.Pin
/// The call back.
public MapWp8Model.MapInfos CallBack { get; set; }
- /// Gets or sets place which are associative with this pin.
- /// The associated places.
- public List AssocPlaces { get; set; }
-
#endregion
#region Method
diff --git a/CampusAppWP8/CampusAppWP8/Model/GeoDb/CampusBuildingLayerWp8Model.cs b/CampusAppWP8/CampusAppWP8/Model/GeoDb/CampusBuildingLayerWp8Model.cs
deleted file mode 100644
index 531574a1..00000000
--- a/CampusAppWP8/CampusAppWP8/Model/GeoDb/CampusBuildingLayerWp8Model.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
-//
-// Stubbfel
-// 21.10.2013
-// Implements the campus building layer wp 8 model class
-//-----------------------------------------------------------------------
-namespace CampusAppWP8.Model.GeoDb
-{
- /// 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
deleted file mode 100644
index 6ba4909f..00000000
--- a/CampusAppWP8/CampusAppWP8/Model/GeoDb/CampusBuildingWp8Model.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
-//
-// Stubbfel
-// 21.10.2013
-// Implements the campus building model class
-//-----------------------------------------------------------------------
-namespace CampusAppWP8.Model.GeoDb
-{
- using System.Collections.Generic;
-
- /// 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
deleted file mode 100644
index de0deb4c..00000000
--- a/CampusAppWP8/CampusAppWP8/Model/GeoDb/PlaceWp8Model.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
-//
-// Stubbfel
-// 21.10.2013
-// Implements the place wp 8 model class
-//-----------------------------------------------------------------------
-namespace CampusAppWP8.Model.GeoDb
-{
- using System;
- using System.Device.Location;
- using System.Globalization;
- using System.Text.RegularExpressions;
- using CampusAppWP8.Resources;
- using CampusAppWPortalLib8.Utility;
- using CampusAppWPortalLib8.Model.Utility;
-
- /// Model for a place of the SPSService.
- /// Stubbfel, 15.10.2013.
- ///
- ///
- public class PlaceWp8Model : CampusAppWPortalLib8.Model.GeoDb.PlaceModel
- {
- #region Property
-
- /// Gets the geo reference point.
- /// The geo reference point.
- public GeoMapPoint GeoRefPoint
- {
- get
- {
- string refstring = this.RefPoint;
- Regex rx = new Regex(Constants.Regex_Coordinate);
- MatchCollection matches = rx.Matches(refstring);
- if (matches.Count != 1)
- {
- return null;
- }
-
- string[] values = matches[0].ToString().Split(' ');
-
- if (values.Length != 2)
- {
- return null;
- }
-
- // create the GeoCoordirate
- try
- {
- return new GeoMapPoint(double.Parse(values[1], CultureInfo.InvariantCulture), double.Parse(values[0], CultureInfo.InvariantCulture),0);
- }
- catch (Exception ex)
- {
- Logger.LogException(ex);
- return null;
- }
- }
- }
-
- #endregion
- }
-}
diff --git a/CampusAppWP8/CampusAppWP8/Model/GeoDb/SpsWp8Model.cs b/CampusAppWP8/CampusAppWP8/Model/GeoDb/SpsWp8Model.cs
deleted file mode 100644
index 3ef6895c..00000000
--- a/CampusAppWP8/CampusAppWP8/Model/GeoDb/SpsWp8Model.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
-//
-// Stubbfel
-// 21.10.2013
-// Implements the sps wp 8 model class
-//-----------------------------------------------------------------------
-namespace CampusAppWP8.Model.GeoDb
-{
- using System.Xml.Serialization;
-
- /// 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 1e9d688f..7f5e9a0f 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml.cs
@@ -21,7 +21,6 @@ namespace CampusAppWP8.Pages.Campusmap
using System.Windows.Navigation;
using CampusAppWP8.File.Places;
using CampusAppWP8.Model.Campusmap.Map;
- using CampusAppWP8.Model.GeoDb;
using CampusAppWP8.Resources;
using CampusAppWP8.Utility;
using CampusAppWP8.Utility.Lui.MessageBoxes;
@@ -31,6 +30,7 @@ namespace CampusAppWP8.Pages.Campusmap
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Windows.Networking.Proximity;
+ using CampusAppWPortalLib8.Model.GeoDb;
/// Class for the campusMap page.
/// Stubbfel, 19.08.2013.
@@ -140,7 +140,7 @@ namespace CampusAppWP8.Pages.Campusmap
scroll = false;
if (Utilities.IsRoomId(alias))
{
- PlaceWp8Model place = this.file.Model.GetPlaceById(alias);
+ PlaceModel place = this.file.Model.GetPlaceById(alias);
if (place != null)
{
this.GoToRoomList(place.ParentId, place.PlaceId);
@@ -161,7 +161,7 @@ namespace CampusAppWP8.Pages.Campusmap
App.SaveToIsolatedStorage(Constants.CampusMapApp_QRCodeSearchResultStorageKey, null);
string searchPid = Wp8StringManager.FilterPlaceIdinQRResultString(qrcodeResult);
- PlaceWp8Model place = this.file.Model.GetPlaceById(searchPid);
+ PlaceModel place = this.file.Model.GetPlaceById(searchPid);
if (searchPid != null)
{
@@ -431,9 +431,9 @@ namespace CampusAppWP8.Pages.Campusmap
return;
}
- List placeList = new List();
- PlaceWp8Model tmpPlace;
- SpsWp8Model spatial;
+ List placeList = new List();
+ PlaceModel tmpPlace;
+ SpsModel spatial;
if (allPlaces)
{
spatial = this.file.Model;
@@ -500,7 +500,7 @@ namespace CampusAppWP8.Pages.Campusmap
// search for placeId
string nfcContent = ndef.GetContent();
string searchPid = Wp8StringManager.FilterPlaceIdinNFCResultString(nfcContent.Trim());
- PlaceWp8Model place = this.file.Model.GetPlaceById(searchPid);
+ PlaceModel place = this.file.Model.GetPlaceById(searchPid);
if (searchPid != null)
{
@@ -561,9 +561,9 @@ namespace CampusAppWP8.Pages.Campusmap
/// (optional) if its true, search places in place file, otherwise in CampusMapModel.
///
/// The found places.
- private List SearchPlaces(string query, bool allPlaces = false)
+ private List SearchPlaces(string query, bool allPlaces = false)
{
- SpsWp8Model spatial;
+ SpsModel spatial;
if (allPlaces)
{
spatial = this.file.Model;
@@ -576,7 +576,7 @@ namespace CampusAppWP8.Pages.Campusmap
// if query is an id
if (Wp8StringManager.IsDigitsOnly(query))
{
- return new List() { spatial.GetPlaceById(query) };
+ return new List() { spatial.GetPlaceById(query) };
}
if (this.informationsNames == null)
@@ -595,9 +595,9 @@ namespace CampusAppWP8.Pages.Campusmap
/// The places.
/// The type.
/// (Optional) the scroll.
- private void AddPins(List places,PinType type, bool scroll = true)
+ private void AddPins(List places,PinType type, bool scroll = true)
{
- foreach (PlaceWp8Model place in places)
+ foreach (PlaceModel place in places)
{
if (place == null)
{
@@ -607,7 +607,7 @@ namespace CampusAppWP8.Pages.Campusmap
GeoMapPoint coor = place.GeoRefPoint;
if (coor != null)
{
- List assocPlaces = new List();
+ List assocPlaces = new List();
assocPlaces.Add(place);
this.AddPin(coor.Longitude, coor.Latitude, type, scroll, assocPlaces);
}
@@ -623,7 +623,7 @@ namespace CampusAppWP8.Pages.Campusmap
///
/// (Optional) List of places, whose are associative with the pin.
///
- private void AddPin(double x, double y, PinType type, bool scroll = true, List assocPlaces = null)
+ private void AddPin(double x, double y, PinType type, bool scroll = true, List assocPlaces = null)
{
MapPoint scrollPoint = this.campusMap.GetScrollPoint(this.campusMap.ConverToPixelPoint(this.campusMap.ConverToMapPoint(x, y)));
MapCanvas.Children.Add(this.campusMap.AddPinFromRefPoint(this.campusMap.ConverToPixelPoint(this.campusMap.ConverToMapPoint(x, y)), type, assocPlaces));
@@ -741,7 +741,7 @@ namespace CampusAppWP8.Pages.Campusmap
/// Method show same PlaceInformation.
/// Stubbfel, 15.10.2013.
/// List of places.
- private void ShowMapInfo(List places)
+ private void ShowMapInfo(List places)
{
if (places == null)
{
@@ -749,7 +749,7 @@ namespace CampusAppWP8.Pages.Campusmap
}
string msgText = string.Empty;
- foreach (PlaceWp8Model place in places)
+ foreach (PlaceModel place in places)
{
msgText += AppResources.PlaceLabel_Name + ": ";
msgText += place.GetInformationsValue(Constants.PisInformationName_Name);
@@ -782,7 +782,7 @@ namespace CampusAppWP8.Pages.Campusmap
MessageBoxes.ShowMainModelInfoMessageBox(msgText);
- foreach (PlaceWp8Model place in places)
+ foreach (PlaceModel place in places)
{
if (place.ParentId.Equals(this.campusMap.CampusId) && this.HasRooms(place.PlaceId))
{
@@ -821,7 +821,7 @@ namespace CampusAppWP8.Pages.Campusmap
/// true, if the place has got rooms, otherwise false.
private bool HasRooms(string placeId)
{
- foreach (PlaceWp8Model place in this.file.Model.Places)
+ foreach (PlaceModel place in this.file.Model.Places)
{
if (place.ParentId.Equals(placeId))
{
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/RoomListPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/RoomListPage.xaml.cs
index 9a9fba02..da9c7fce 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/RoomListPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/RoomListPage.xaml.cs
@@ -17,13 +17,13 @@ namespace CampusAppWP8.Pages.Campusmap
using System.Windows.Navigation;
using CampusAppWP8.File.Places;
using CampusAppWP8.Model.Campusmap.Map;
- using CampusAppWP8.Model.GeoDb;
using CampusAppWP8.Resources;
using CampusAppWP8.Utility;
using CampusAppWP8.Utility.Lui.MessageBoxes;
using CampusAppWPortalLib8.Model.Campusmap.Pin;
using CampusAppWPortalLib8.Model.Utility;
using Microsoft.Phone.Controls;
+ using CampusAppWPortalLib8.Model.GeoDb;
/// Class of the RoomListPage.
/// Stubbfel, 14.10.2013.
@@ -35,7 +35,7 @@ namespace CampusAppWP8.Pages.Campusmap
private PlacesFile placeFile;
/// Variable of building which is shown in the list.
- private CampusBuildingWp8Model building;
+ private CampusBuildingModel building;
/// Variable for the map model.
private BuildingMapModel buildingMap;
@@ -150,20 +150,20 @@ namespace CampusAppWP8.Pages.Campusmap
this.ClearMap(new List() { MapPinModel.InfoPlacePinString });
- PlaceWp8Model room = this.building.GetPlaceById(placeId);
+ PlaceModel room = this.building.GetPlaceById(placeId);
x = room.GeoRefPoint.Longitude;
y = room.GeoRefPoint.Latitude;
MapPoint roompoint = this.buildingMap.GetScrollPoint(this.buildingMap.ConverToPixelPoint(this.buildingMap.ConverToMapPoint(x, y)));
MapPoint viewPoint = roompoint - this.mappoint + this.offsetPoint;
- MapCanvas.Children.Add(this.buildingMap.AddPin(viewPoint, PinType.InfoRedPlace, new List { room }));
+ MapCanvas.Children.Add(this.buildingMap.AddPin(viewPoint, PinType.InfoRedPlace, new List { room }));
}
/// Shows the map information.
/// Stubbfel, 14.10.2013.
/// The places.
- private void ShowMapInfo(List places)
+ private void ShowMapInfo(List places)
{
if (this.pinchRun)
{
@@ -176,7 +176,7 @@ namespace CampusAppWP8.Pages.Campusmap
return;
}
- foreach (PlaceWp8Model place in places)
+ foreach (PlaceModel place in places)
{
msgText += AppResources.PlaceLabel_Name + ": ";
msgText += place.GetInformationsValue(Constants.PisInformationName_Name);
@@ -289,13 +289,13 @@ namespace CampusAppWP8.Pages.Campusmap
layerKey = this.building.Layers.Keys.First();
}
- CampusBuildingLayerWp8Model layer = this.building.Layers[layerKey];
+ CampusBuildingLayerModel layer = this.building.Layers[layerKey];
double x;
double y;
this.ClearMap(new List() { MapPinModel.InfoPlacePinString });
- foreach (PlaceWp8Model room in layer.Rooms.Places)
+ foreach (PlaceModel room in layer.Rooms.Places)
{
x = room.GeoRefPoint.Longitude;
y = room.GeoRefPoint.Latitude;
@@ -322,7 +322,7 @@ namespace CampusAppWP8.Pages.Campusmap
break;
}
- MapCanvas.Children.Add(this.buildingMap.AddPin(viewPoint, type, new List { room }));
+ MapCanvas.Children.Add(this.buildingMap.AddPin(viewPoint, type, new List { room }));
}
// MapCanvas.Children.Add(this.buildingMap.AddPin(offsetPoint, MapPinModel.PinType.SearchPlace));
@@ -342,7 +342,7 @@ namespace CampusAppWP8.Pages.Campusmap
/// Identifier for the building.
private void SetupCanvas(string buildingId)
{
- this.building = new CampusBuildingWp8Model(buildingId, this.placeFile.Model.Places.ToList());
+ this.building = new CampusBuildingModel(buildingId, this.placeFile.Model.Places.ToList());
this.buildingMap = new BuildingMapModel(this.building.Building.PlaceId);
this.buildingMap.ShowMapInfos += new CBMainMapModel.MapInfos(this.ShowMapInfo);
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Dev/NFC.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Dev/NFC.xaml.cs
index de581d45..4c187c35 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Dev/NFC.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Dev/NFC.xaml.cs
@@ -15,10 +15,10 @@ namespace CampusAppWP8.Pages.Dev
using System.Windows;
using System.Windows.Navigation;
using CampusAppWP8.File.Places;
- using CampusAppWP8.Model.GeoDb;
using CampusAppWP8.Utility.NDEF;
using Microsoft.Phone.Controls;
using Windows.Networking.Proximity;
+ using CampusAppWPortalLib8.Model.GeoDb;
/// Nfc page.
/// Stubbfel, 22.08.2013.
@@ -85,7 +85,7 @@ namespace CampusAppWP8.Pages.Dev
this.ndefList = new List();
// MapModel map = new CBMainMapModel(this.file.Model.Places.ToList());
- foreach (PlaceWp8Model place in this.file.Model.Places.ToList())
+ foreach (PlaceModel place in this.file.Model.Places.ToList())
{
this.ndefList.Add(new NDEFMessage(place.ToNfcString(), NDEFMessage.TYPEVAL.TEXT));
}
diff --git a/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/PlaceNews.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/PlaceNews.xaml.cs
index d0d1d672..9136ba70 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/PlaceNews.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/PlaceNews.xaml.cs
@@ -18,13 +18,13 @@ namespace CampusAppWP8.Pages.PlaceNews
using System.Windows.Navigation;
using CampusAppWP8.Api.GeoApi;
using CampusAppWP8.File.Places;
- using CampusAppWP8.Model.GeoDb;
using CampusAppWP8.Resources;
using CampusAppWP8.Utility;
using CampusAppWP8.Utility.Lui.MessageBoxes;
using CampusAppWP8.Utility.NDEF;
using Microsoft.Phone.Controls;
using Windows.Networking.Proximity;
+ using CampusAppWPortalLib8.Model.GeoDb;
/// Place news.
/// Stubbfel, 09.09.2013.
@@ -90,7 +90,7 @@ namespace CampusAppWP8.Pages.PlaceNews
if (this.places == null)
{
this.places = new PlacesFile();
- this.places.Model = App.LoadFromIsolatedStorage(Constants.IsolatedStorage_AllPlaces);
+ this.places.Model = App.LoadFromIsolatedStorage(Constants.IsolatedStorage_AllPlaces);
}
if (this.qrScan)
@@ -131,7 +131,7 @@ namespace CampusAppWP8.Pages.PlaceNews
{
if (NavigationMode.Back == e.NavigationMode)
{
- App.SaveToIsolatedStorage(Constants.IsolatedStorage_AllPlaces, null);
+ App.SaveToIsolatedStorage(Constants.IsolatedStorage_AllPlaces, null);
}
}
@@ -199,7 +199,7 @@ namespace CampusAppWP8.Pages.PlaceNews
/// Stubbfel, 09.09.2013.
private void PlacesFileIsFail()
{
- this.places.Model = new SpsWp8Model();
+ this.places.Model = new SpsModel();
if (this.spsApi == null)
{
this.spsApi = new SpsApi();
@@ -328,7 +328,7 @@ namespace CampusAppWP8.Pages.PlaceNews
this.ResultBox.ItemsSource = this.places.Model.FilterByPid(this.searchPidList);
this.ProgressBar.Visibility = Visibility.Collapsed;
this.places.SaveData();
- App.SaveToIsolatedStorage(Constants.IsolatedStorage_AllPlaces, this.places.Model);
+ App.SaveToIsolatedStorage(Constants.IsolatedStorage_AllPlaces, this.places.Model);
this.forceRequest = false;
}
@@ -412,7 +412,7 @@ namespace CampusAppWP8.Pages.PlaceNews
return;
}
- PlaceWp8Model place = this.places.Model.GetPlaceById(placeID);
+ PlaceModel place = this.places.Model.GetPlaceById(placeID);
txt.Text = place.GetInformationsValue(Constants.PisInformationName_Name);
}
diff --git a/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/ShowPad.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/ShowPad.xaml.cs
index 0d0ce2df..c4d5ac41 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/ShowPad.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/ShowPad.xaml.cs
@@ -10,9 +10,9 @@ namespace CampusAppWP8.Pages.PlaceNews
{
using System;
using System.Windows.Navigation;
- using CampusAppWP8.Model.GeoDb;
using CampusAppWP8.Resources;
using Microsoft.Phone.Controls;
+ using CampusAppWPortalLib8.Model.GeoDb;
/// Show pad.
/// Stubbfel, 09.09.2013.
@@ -39,9 +39,9 @@ namespace CampusAppWP8.Pages.PlaceNews
{
if (NavigationContext.QueryString.ContainsKey(Constants.ParamPlaceID))
{
- SpsWp8Model model = App.LoadFromIsolatedStorage(Constants.IsolatedStorage_AllPlaces);
+ SpsModel model = App.LoadFromIsolatedStorage(Constants.IsolatedStorage_AllPlaces);
string placeId = NavigationContext.QueryString[Constants.ParamPlaceID];
- PlaceWp8Model place = model.GetPlaceById(placeId);
+ PlaceModel place = model.GetPlaceById(placeId);
if (place != null && place.Services != null && place.Services.Count > 0 && place.Informations != null && place.Informations.Count > 0)
{
this.Room.Text += " - " + place.Informations[0].InformationValue;
diff --git a/CampusAppWP8/CampusAppWP8/Resources/Constants.resx b/CampusAppWP8/CampusAppWP8/Resources/Constants.resx
index e6331c78..d325d2eb 100644
--- a/CampusAppWP8/CampusAppWP8/Resources/Constants.resx
+++ b/CampusAppWP8/CampusAppWP8/Resources/Constants.resx
@@ -366,9 +366,6 @@
/Pages/Campusmap/CampusMapPage.xaml
-
- [+-]{0,1}[0-9]+[.,]{0,1}[0-9]+[\s][+-]{0,1}[0-9]+[.,]{0,1}[0-9]+
-
File/Campusmap/Offlinemap.xml
diff --git a/CampusAppWP8/CampusAppWP8/Resources/Constants1.Designer.cs b/CampusAppWP8/CampusAppWP8/Resources/Constants1.Designer.cs
index e1e2dbbb..f03c7de3 100644
--- a/CampusAppWP8/CampusAppWP8/Resources/Constants1.Designer.cs
+++ b/CampusAppWP8/CampusAppWP8/Resources/Constants1.Designer.cs
@@ -1176,15 +1176,6 @@ namespace CampusAppWP8.Resources {
}
}
- ///
- /// Sucht eine lokalisierte Zeichenfolge, die [+-]{0,1}[0-9]+[.,]{0,1}[0-9]+[\s][+-]{0,1}[0-9]+[.,]{0,1}[0-9]+ ähnelt.
- ///
- public static string Regex_Coordinate {
- get {
- return ResourceManager.GetString("Regex_Coordinate", resourceCulture);
- }
- }
-
///
/// Sucht eine lokalisierte Zeichenfolge, die 767 ähnelt.
///