refactory campusmapmodel
This commit is contained in:
@@ -200,7 +200,9 @@
|
||||
<Compile Include="Feed\StudentCouncil\StudentCouncilFeed.cs" />
|
||||
<Compile Include="LocalizedStrings.cs" />
|
||||
<Compile Include="Model\Campusmap\MapModel.cs" />
|
||||
<Compile Include="Model\Campusmap\MapPinModel.cs" />
|
||||
<Compile Include="Model\Campusmap\MapPinModel.cs">
|
||||
<ExcludeFromStyleCop>False</ExcludeFromStyleCop>
|
||||
</Compile>
|
||||
<Compile Include="Model\Lecture\LectureWp8Activity.cs" />
|
||||
<Compile Include="Model\Lecture\LectureWp8List.cs" />
|
||||
<Compile Include="Model\Lecture\LecturePageModel.cs" />
|
||||
|
||||
@@ -1,25 +1,35 @@
|
||||
using CampusAppWP8.Model.GeoDb;
|
||||
using CampusAppWP8.Resources;
|
||||
using CampusAppWPortalLib8.Utility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="BuildingMapModel.cs" company="BTU/IIT">
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the building map model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using CampusAppWP8.Model.GeoDb;
|
||||
using CampusAppWP8.Resources;
|
||||
using CampusAppWPortalLib8.Utility;
|
||||
|
||||
/// <summary> A data Model for the building map. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <seealso cref="T:CampusAppWP8.Model.Campusmap.MapModel"/>
|
||||
public class BuildingMapModel : MapModel
|
||||
{
|
||||
/// <summary> Initializes a new instance of the BuildingMapModel class. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="id"> The identifier. </param>
|
||||
public BuildingMapModel(string id)
|
||||
{
|
||||
SpsModel buildings = XmlManager.DeserializationFileToModel<SpsModel>(Constants.FileMap_BuildingsMap);
|
||||
PlaceModel building = buildings.GetPlaceById(id);
|
||||
if (buildings == null)
|
||||
{
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
this.ImageSource = building.GetInformationsValue("ImageSource");
|
||||
@@ -29,7 +39,7 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
this.ImageWidth = tmpVal;
|
||||
}
|
||||
|
||||
if (double.TryParse(building.GetInformationsValue("ImageHeight"), NumberStyles.Number, CultureInfo.InvariantCulture, out tmpVal))
|
||||
if (double.TryParse(building.GetInformationsValue("ImageHeight"), NumberStyles.Number, CultureInfo.InvariantCulture, out tmpVal))
|
||||
{
|
||||
this.ImageHeight = tmpVal;
|
||||
}
|
||||
@@ -52,6 +62,7 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
double x;
|
||||
double y;
|
||||
|
||||
@@ -60,7 +71,7 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
return;
|
||||
}
|
||||
|
||||
this.RefPoint = new Point(x,y);
|
||||
this.RefPoint = new Point(x, y);
|
||||
|
||||
if (double.TryParse(building.GetInformationsValue("ScaleX"), NumberStyles.Number, CultureInfo.InvariantCulture, out tmpVal))
|
||||
{
|
||||
@@ -74,7 +85,6 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
|
||||
this.GeoOffsetX = building.GeoRefPoint.Longitude;
|
||||
this.GeoOffsetY = building.GeoRefPoint.Latitude;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,36 +1,37 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="CBMainMapModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>13.08.2013</sience>
|
||||
//-----------------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the main map model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
using System.Windows;
|
||||
using CampusAppWP8.File.Places;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows;
|
||||
using CampusAppWP8.Model.GeoDb;
|
||||
using CampusAppWP8.Resources;
|
||||
using System.Collections.Generic;
|
||||
using CampusAppWP8.Resources;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the MapModel of the mainCampus of cottbus
|
||||
/// </summary>
|
||||
/// <summary> Class for the MapModel of the mainCampus of cottbus. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <seealso cref="T:CampusAppWP8.Model.Campusmap.CampusMapModel"/>
|
||||
public class CBMainMapModel : CampusMapModel
|
||||
{
|
||||
#region Member
|
||||
|
||||
/// <summary>Variable for the identify of the campus.</summary>
|
||||
/// <summary> Variable for the identify of the campus. </summary>
|
||||
private static readonly string Campus = ((int)CampusAppWPortalLib8.Model.Settings.Campus.CB_MAIN).ToString();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CBMainMapModel" /> class.
|
||||
/// </summary>
|
||||
public CBMainMapModel(List<PlaceModel> placeList) : base (placeList,CBMainMapModel.Campus)
|
||||
/// <summary> Initializes a new instance of the <see cref="CBMainMapModel" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="placeList"> List of places. </param>
|
||||
public CBMainMapModel(List<PlaceModel> placeList)
|
||||
: base(placeList, CBMainMapModel.Campus)
|
||||
{
|
||||
this.ImageSource = Constants.FileMap_CBMainMap;
|
||||
this.ImageWidth = 2000;
|
||||
|
||||
@@ -1,31 +1,25 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// <copyright file="CBMainMapModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="CBMainMapRoomModel.cs" company="BTU/IIT">
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>13.08.2013</sience>
|
||||
//-----------------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the main map room model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
using System.Windows;
|
||||
using CampusAppWP8.File.Places;
|
||||
using CampusAppWP8.Model.GeoDb;
|
||||
using CampusAppWP8.Resources;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the MapModel of the mainCampus of cottbus
|
||||
/// </summary>
|
||||
/// <summary> Class for the MapModel of the mainCampus of cottbus. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
public class CBMainMapRoomModel
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
/// <summary> Initializes a new instance of the CBMainMapRoomModel class. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
public CBMainMapRoomModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,28 +1,27 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="CampusMapModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>26.09.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the campus map model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using CampusAppWP8.Model.GeoDb;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the CampusMapModel
|
||||
/// </summary>
|
||||
/// <summary> Class for the CampusMapModel. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <seealso cref="T:CampusAppWP8.Model.Campusmap.MapModel"/>
|
||||
public class CampusMapModel : MapModel
|
||||
{
|
||||
#region constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CampusMapModel" /> class.
|
||||
/// </summary>
|
||||
/// <param name="placeList">list of places</param>
|
||||
/// <param name="campusId">id of the campus</param>
|
||||
/// <summary> Initializes a new instance of the <see cref="CampusMapModel" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="placeList"> list of places. </param>
|
||||
/// <param name="campusId"> id of the campus. </param>
|
||||
public CampusMapModel(List<PlaceModel> placeList, string campusId)
|
||||
{
|
||||
this.CampusId = campusId;
|
||||
@@ -30,6 +29,8 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
this.IsReady = true;
|
||||
}
|
||||
|
||||
/// <summary> Initializes a new instance of the CampusMapModel class. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
public CampusMapModel()
|
||||
{
|
||||
}
|
||||
@@ -38,18 +39,17 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
|
||||
#region property
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the campusId
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the campusId. </summary>
|
||||
/// <value> The identifier of the campus. </value>
|
||||
public string CampusId { get; protected set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region method
|
||||
|
||||
/// <summary>Loads the spatial./.</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
/// <param name="placeList">list of places</param>
|
||||
/// <summary> Loads the spatial./. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <seealso cref="M:CampusAppWP8.Model.Campusmap.MapModel.LoadSpatials(List{PlaceModel})"/>
|
||||
protected override void LoadSpatials(List<PlaceModel> placeList)
|
||||
{
|
||||
List<PlaceModel> campusPlaces = new List<PlaceModel>();
|
||||
|
||||
@@ -1,42 +1,39 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="ClickAblePlacePinModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>26.09.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the click able place pin model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using CampusAppWP8.Model.GeoDb;
|
||||
|
||||
/// <summary>
|
||||
/// abstract class for click abel bins
|
||||
/// </summary>
|
||||
/// <summary> abstract class for click abel bins. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <seealso cref="T:CampusAppWP8.Model.Campusmap.MapPinModel"/>
|
||||
public abstract class ClickAblePlacePinModel : MapPinModel
|
||||
{
|
||||
#region property
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets Callback Function, to show place information of the Pin
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets Callback Function, to show place information of the Pin. </summary>
|
||||
/// <value> The call back. </value>
|
||||
public MapModel.MapInfos CallBack { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets place which are associative with this pin
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets place which are associative with this pin. </summary>
|
||||
/// <value> The associated places. </value>
|
||||
public List<PlaceModel> AssocPlaces { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Method
|
||||
|
||||
/// <summary>
|
||||
/// Show Information of this pin places
|
||||
/// </summary>
|
||||
/// <param name="sender">sender of the Event</param>
|
||||
/// <param name="e">MouseButtonEvent Arguments</param>
|
||||
/// <summary> Show Information of this pin places. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="sender"> sender of the Event. </param>
|
||||
/// <param name="e"> MouseButtonEvent Arguments. </param>
|
||||
public void ShowInfo(object sender, System.Windows.Input.MouseButtonEventArgs e)
|
||||
{
|
||||
this.CallBack(this.AssocPlaces);
|
||||
|
||||
@@ -1,24 +1,25 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="CurrentPositionPinModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>27.08.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the current position pin model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
using System.Windows;
|
||||
using CampusAppWP8.Resources;
|
||||
|
||||
/// <summary>Current position pin model.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Current position pin model. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <seealso cref="T:CampusAppWP8.Model.Campusmap.MapPinModel"/>
|
||||
public class CurrentPositionPinModel : MapPinModel
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
/// <summary>Initializes a new instance of the CurrentPositionPinModel class.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Initializes a new instance of the CurrentPositionPinModel class. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
public CurrentPositionPinModel()
|
||||
{
|
||||
this.ImageSource = Icons.CurrentPosition;
|
||||
@@ -26,7 +27,7 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
this.ImageHeight = 60;
|
||||
this.PinImageOffsetX = -25;
|
||||
this.PinImageOffsetY = -34;
|
||||
this.Tag = MapPinModel.CurrendPositionPlacePinString;
|
||||
this.Tag = MapPinModel.CurrentPositionPlacePinString;
|
||||
this.ZIndex = 3;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="HiddenPinPlaceModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>fiedlchr</author>
|
||||
// <sience>13.08.2013</sience>
|
||||
//-----------------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the hidden pin place model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
/// <summary>Hidden pin place model.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Hidden pin place model. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <seealso cref="T:CampusAppWP8.Model.Campusmap.MapPinModel"/>
|
||||
public class HiddenPinPlaceModel : MapPinModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="HiddenPinPlaceModel" /> class.
|
||||
/// </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
public HiddenPinPlaceModel()
|
||||
{
|
||||
this.Tag = MapPinModel.HiddenPlacePinString;
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="InfoLabPlacePinModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>27.08.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the information lab place pin model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
using CampusAppWP8.Resources;
|
||||
|
||||
/// <summary>Search pin place model.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Search pin place model. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <seealso cref="T:CampusAppWP8.Model.Campusmap.InfoPlacePinModel"/>
|
||||
public class InfoLabPlacePinModel : InfoPlacePinModel
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InfoPlacePinModel" /> class.
|
||||
/// </summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Initializes a new instance of the <see cref="InfoPlacePinModel" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
public InfoLabPlacePinModel()
|
||||
{
|
||||
this.ImageSource = Icons.PlaceLab;
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="InfoLabPlacePinModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// <copyright file="InfoPlaceAccessPinModel.cs" company="BTU/IIT">
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>27.08.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the information place access pin model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
using CampusAppWP8.Resources;
|
||||
|
||||
/// <summary>Search pin place model.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Search pin place model. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <seealso cref="T:CampusAppWP8.Model.Campusmap.InfoPlacePinModel"/>
|
||||
public class InfoPlaceAccessPinModel : InfoPlacePinModel
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InfoPlacePinModel" /> class.
|
||||
/// </summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Initializes a new instance of the <see cref="InfoPlacePinModel" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
public InfoPlaceAccessPinModel()
|
||||
{
|
||||
this.ImageSource = Icons.PlaceInfoAccess;
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="InfoPlacePinModel.cs" company="BTU/IIT">
|
||||
// BTU/IIT
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>27.08.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the information place pin model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
using CampusAppWP8.Resources;
|
||||
|
||||
/// <summary>Search pin place model.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Search pin place model. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <seealso cref="T:CampusAppWP8.Model.Campusmap.ClickAblePlacePinModel"/>
|
||||
public class InfoPlacePinModel : ClickAblePlacePinModel
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InfoPlacePinModel" /> class.
|
||||
/// </summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Initializes a new instance of the <see cref="InfoPlacePinModel" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
public InfoPlacePinModel()
|
||||
{
|
||||
this.ImageSource = Icons.PlaceInfo;
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="InfoLabPlacePinModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// <copyright file="InfoPlaceWCPinModel.cs" company="BTU/IIT">
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>27.08.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the information place wc pin model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
using CampusAppWP8.Resources;
|
||||
|
||||
/// <summary>Search pin place model.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Search pin place model. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <seealso cref="T:CampusAppWP8.Model.Campusmap.InfoPlacePinModel"/>
|
||||
public class InfoPlaceWCPinModel : InfoPlacePinModel
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InfoPlacePinModel" /> class.
|
||||
/// </summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Initializes a new instance of the InfoPlaceWCPinModel class. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
public InfoPlaceWCPinModel()
|
||||
{
|
||||
this.ImageSource = Icons.PlaceInfoWc;
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="MapModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>24.06.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the map model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
using System;
|
||||
@@ -15,25 +16,22 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
using System.Windows.Media.Imaging;
|
||||
using CampusAppWP8.Model.GeoDb;
|
||||
|
||||
/// <summary>
|
||||
/// This Class manage the properties of a Map
|
||||
/// </summary>
|
||||
/// <summary> This Class manage the properties of a Map. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
public class MapModel
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MapModel" /> class.
|
||||
/// </summary>
|
||||
/// <summary> Initializes a new instance of the <see cref="MapModel" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
public MapModel()
|
||||
{
|
||||
this.IsReady = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MapModel" /> class.
|
||||
/// </summary>
|
||||
/// <param name="placeList">list of places</param>
|
||||
/// <summary> Initializes a new instance of the <see cref="MapModel" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="placeList"> list of places. </param>
|
||||
public MapModel(List<PlaceModel> placeList)
|
||||
{
|
||||
this.IsReady = false;
|
||||
@@ -45,77 +43,63 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
|
||||
#region Events
|
||||
|
||||
/// <summary>
|
||||
/// Delegate for MapInfo
|
||||
/// </summary>
|
||||
/// <param name="places">list of places</param>
|
||||
/// <summary> Delegate for MapInfo. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="places"> list of places. </param>
|
||||
public delegate void MapInfos(List<PlaceModel> places);
|
||||
|
||||
/// <summary>
|
||||
/// Event ShowMapInfo
|
||||
/// </summary>
|
||||
/// <summary> Event ShowMapInfo. </summary>
|
||||
public event MapInfos ShowMapInfos = null;
|
||||
|
||||
#endregion
|
||||
#region Property
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the map is ready or not
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets a value indicating whether the map is ready or not. </summary>
|
||||
/// <value> true if this object is ready, false if not. </value>
|
||||
public bool IsReady { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ImageSource of the map
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the ImageSource of the map. </summary>
|
||||
/// <value> The image source. </value>
|
||||
public string ImageSource { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ImageWidth of the map
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the ImageWidth of the map. </summary>
|
||||
/// <value> The width of the image. </value>
|
||||
public double ImageWidth { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ImageHeight of the map
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the ImageHeight of the map. </summary>
|
||||
/// <value> The height of the image. </value>
|
||||
public double ImageHeight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ImageOffsetX of the map
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the ImageOffsetX of the map. </summary>
|
||||
/// <value> The map image offset x coordinate. </value>
|
||||
public double MapImageOffsetX { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ImageOffsetY of the map
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the ImageOffsetY of the map. </summary>
|
||||
/// <value> The map image offset y coordinate. </value>
|
||||
public double MapImageOffsetY { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the GeoOffsetX of the map
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the GeoOffsetX of the map. </summary>
|
||||
/// <value> The geo offset x coordinate. </value>
|
||||
public double GeoOffsetX { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the GeoOffsetY of the map
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the GeoOffsetY of the map. </summary>
|
||||
/// <value> The geo offset y coordinate. </value>
|
||||
public double GeoOffsetY { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Scale (to pixel) of the map
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the Scale (to pixel) of the map. </summary>
|
||||
/// <value> The scale x coordinate. </value>
|
||||
public double ScaleX { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Scale (to pixel) of the map
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the Scale (to pixel) of the map. </summary>
|
||||
/// <value> The scale y coordinate. </value>
|
||||
public double ScaleY { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the reference point
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the reference point. </summary>
|
||||
/// <value> The reference point. </value>
|
||||
public Point RefPoint { get; set; }
|
||||
|
||||
/// <summary>Gets or sets the spatial of the map.</summary>
|
||||
/// <value>The spatial.</value>
|
||||
/// <summary> Gets or sets the spatial of the map. </summary>
|
||||
/// <value> The spatial. </value>
|
||||
public SpsModel Spatial { get; set; }
|
||||
|
||||
#endregion
|
||||
@@ -124,23 +108,20 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
|
||||
#region public
|
||||
|
||||
/// <summary>
|
||||
/// Method calculate the coordinates of ScrollToOffsets point
|
||||
/// </summary>
|
||||
/// <param name="point">input point</param>
|
||||
/// <returns>point (in pixel)</returns>
|
||||
/// <summary> Method calculate the coordinates of ScrollToOffsets point. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="point"> input point. </param>
|
||||
/// <returns> point (in pixel) </returns>
|
||||
public Point GetScrollPoint(Point point)
|
||||
{
|
||||
return this.GetScrollPoint(point.X, point.Y);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method calculate the coordinates of ScrollToOffsets point
|
||||
/// </summary>
|
||||
/// <remarks>the input-point will be shown in the center</remarks>
|
||||
/// <param name="x">x - coordinate</param>
|
||||
/// <param name="y">y - coordinate</param>
|
||||
/// <returns>point (in pixel)</returns>
|
||||
/// <summary> Method calculate the coordinates of ScrollToOffsets point. </summary>
|
||||
/// <remarks> the input-point will be shown in the center. </remarks>
|
||||
/// <param name="x"> x - coordinate. </param>
|
||||
/// <param name="y"> y - coordinate. </param>
|
||||
/// <returns> point (in pixel) </returns>
|
||||
public Point GetScrollPoint(double x, double y)
|
||||
{
|
||||
x = this.RefPoint.X + this.MapImageOffsetX + x;
|
||||
@@ -149,13 +130,13 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
return new Point(x, y);
|
||||
}
|
||||
|
||||
/// <summary>Method create in image, which can show at a certain position.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <param name="x"> the x- coordinate.</param>
|
||||
/// <param name="y"> the y-coordinate.</param>
|
||||
/// <param name="type">The type.</param>
|
||||
/// <param name="places">list of places</param>
|
||||
/// <returns>image of the pin.</returns>
|
||||
/// <summary> Method create in image, which can show at a certain position. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <param name="x"> the x- coordinate. </param>
|
||||
/// <param name="y"> the y-coordinate. </param>
|
||||
/// <param name="type"> The type. </param>
|
||||
/// <param name="places"> (Optional) list of places. </param>
|
||||
/// <returns> image of the pin. </returns>
|
||||
public Image AddPin(double x, double y, MapPinModel.PinType type, List<PlaceModel> places = null)
|
||||
{
|
||||
Point position = new Point(x, y);
|
||||
@@ -166,12 +147,12 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
/// Method create in image, which can show at a certain position depend of the
|
||||
/// <see cref="RefPoint" />
|
||||
/// </summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <param name="x"> the x-coordinate.</param>
|
||||
/// <param name="y"> the y-coordinate.</param>
|
||||
/// <param name="type">The type.</param>
|
||||
/// <param name="places">list of places</param>
|
||||
/// <returns>image of the pin.</returns>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <param name="x"> the x-coordinate. </param>
|
||||
/// <param name="y"> the y-coordinate. </param>
|
||||
/// <param name="type"> The type. </param>
|
||||
/// <param name="places"> (Optional) list of places. </param>
|
||||
/// <returns> image of the pin. </returns>
|
||||
public Image AddPinFromRefPoint(double x, double y, MapPinModel.PinType type, List<PlaceModel> places = null)
|
||||
{
|
||||
Point position = new Point(this.RefPoint.X + x, this.RefPoint.Y - y);
|
||||
@@ -182,22 +163,22 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
/// Method create in image, which can show at a certain position depend of the
|
||||
/// <see cref="RefPoint" />
|
||||
/// </summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <param name="position">input point.</param>
|
||||
/// <param name="type"> The type.</param>
|
||||
/// <param name="places">list of places</param>
|
||||
/// <returns>image of the pin.</returns>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <param name="position"> input point. </param>
|
||||
/// <param name="type"> The type. </param>
|
||||
/// <param name="places"> (Optional) list of places. </param>
|
||||
/// <returns> image of the pin. </returns>
|
||||
public Image AddPinFromRefPoint(Point position, MapPinModel.PinType type, List<PlaceModel> places = null)
|
||||
{
|
||||
return this.AddPinFromRefPoint(position.X, position.Y, type, places);
|
||||
}
|
||||
|
||||
/// <summary>Method create in image, which can show at a certain position.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <param name="position">input point.</param>
|
||||
/// <param name="type"> The type.</param>
|
||||
/// <param name="places">list of places</param>
|
||||
/// <returns>image of the pin.</returns>
|
||||
/// <summary> Method create in image, which can show at a certain position. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <param name="position"> input point. </param>
|
||||
/// <param name="type"> The type. </param>
|
||||
/// <param name="places"> (Optional) list of places. </param>
|
||||
/// <returns> image of the pin. </returns>
|
||||
public Image AddPin(Point position, MapPinModel.PinType type, List<PlaceModel> places = null)
|
||||
{
|
||||
Image pinImg = new Image();
|
||||
@@ -216,43 +197,40 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
return pinImg;
|
||||
}
|
||||
|
||||
/// <summary>Convert a coordinates to coordinates which address pixels.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <param name="x">the x-coordinate.</param>
|
||||
/// <param name="y">the y-coordinate.</param>
|
||||
/// <returns>Point in pixel-size.</returns>
|
||||
/// <summary> Convert a coordinates to coordinates which address pixels. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <param name="x"> the x-coordinate. </param>
|
||||
/// <param name="y"> the y-coordinate. </param>
|
||||
/// <returns> Point in pixel-size. </returns>
|
||||
public Point ConverToPixelPoint(double x, double y)
|
||||
{
|
||||
Point p = new Point { X = this.ScaleX * x, Y = this.ScaleY * y };
|
||||
return p;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert a coordinates to coordinates which address pixels
|
||||
/// </summary>
|
||||
/// <param name="point">not scaled point</param>d
|
||||
/// <returns>Point in pixel-size</returns>
|
||||
/// <summary> Convert a coordinates to coordinates which address pixels. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="point"> not scaled point. </param>
|
||||
/// <returns> Point in pixel-size. </returns>
|
||||
public Point ConverToPixelPoint(Point point)
|
||||
{
|
||||
return this.ConverToPixelPoint(point.X, point.Y);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert a coordinates to coordinates which address mapPoint
|
||||
/// </summary>
|
||||
/// <param name="x">the x-coordinate</param>
|
||||
/// <param name="y">the y-coordinate</param>
|
||||
/// <returns>Point in pixel-size</returns>
|
||||
/// <summary> Convert a coordinates to coordinates which address mapPoint. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="x"> the x-coordinate. </param>
|
||||
/// <param name="y"> the y-coordinate. </param>
|
||||
/// <returns> Point in pixel-size. </returns>
|
||||
public Point ConverToMapPoint(double x, double y)
|
||||
{
|
||||
return new Point { X = x - this.GeoOffsetX, Y = y - this.GeoOffsetY };
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert a coordinates to coordinates which address mapPoint
|
||||
/// </summary>
|
||||
/// <param name="point">not scaled point</param>
|
||||
/// <returns>Point in pixel-size</returns>
|
||||
/// <summary> Convert a coordinates to coordinates which address mapPoint. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="point"> not scaled point. </param>
|
||||
/// <returns> Point in pixel-size. </returns>
|
||||
public Point ConverToMapPoint(Point point)
|
||||
{
|
||||
return this.ConverToMapPoint(point.X, point.Y);
|
||||
@@ -262,9 +240,9 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
|
||||
#region protected
|
||||
|
||||
/// <summary>Loads the spatial./</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
/// <param name="placeList">list of places</param>
|
||||
/// <summary> Loads the spatial object </summary>
|
||||
/// <remarks> Stubbfel, 19.08.2013. </remarks>
|
||||
/// <param name="placeList"> list of places. </param>
|
||||
protected virtual void LoadSpatials(List<PlaceModel> placeList)
|
||||
{
|
||||
this.Spatial = new SpsModel();
|
||||
@@ -275,12 +253,12 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
|
||||
#region private
|
||||
|
||||
/// <summary>Creates a pin.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <param name="type">The type.</param>
|
||||
/// <param name="places">list of places</param>
|
||||
/// <param name="pinImg">image of the pin</param>
|
||||
/// <returns>The new pin.</returns>
|
||||
/// <summary> Creates a pin. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <param name="type"> The type. </param>
|
||||
/// <param name="places"> list of places. </param>
|
||||
/// <param name="pinImg"> image of the pin. </param>
|
||||
/// <returns> The new pin. </returns>
|
||||
private MapPinModel CreatePin(MapPinModel.PinType type, List<PlaceModel> places, Image pinImg)
|
||||
{
|
||||
MapPinModel pin;
|
||||
|
||||
@@ -1,67 +1,56 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="MapPinModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>24.06.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the map pin model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
using CampusAppWP8.Resources;
|
||||
|
||||
/// <summary>
|
||||
/// This Class manage the properties of a MapPin
|
||||
/// </summary>
|
||||
/// <summary> This Class manage the properties of a MapPin. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
public abstract class MapPinModel
|
||||
{
|
||||
#region Member
|
||||
|
||||
/// <summary>
|
||||
/// String for info pins
|
||||
/// </summary>
|
||||
/// <summary> String for info pins. </summary>
|
||||
private static string infoPlacePinString = MapPinModel.PinTypeToString(PinType.InfoPlace);
|
||||
|
||||
/// <summary>
|
||||
/// String for info pins
|
||||
/// </summary>
|
||||
/// <summary> String for info pins. </summary>
|
||||
private static string infoLabPlacePinString = MapPinModel.PinTypeToString(PinType.InfoLabPlace);
|
||||
|
||||
/// <summary>
|
||||
/// String for hidden pins
|
||||
/// </summary>
|
||||
/// <summary> String for hidden pins. </summary>
|
||||
private static string hiddenPlacePinString = MapPinModel.PinTypeToString(PinType.Hidden);
|
||||
|
||||
/// <summary>
|
||||
/// String for search pins
|
||||
/// </summary>
|
||||
/// <summary> String for search pins. </summary>
|
||||
private static string searchPlacePinString = MapPinModel.PinTypeToString(PinType.SearchPlace);
|
||||
|
||||
/// <summary>
|
||||
/// String for current position pins
|
||||
/// </summary>
|
||||
private static string currendPositionPlacePinString = MapPinModel.PinTypeToString(PinType.CurrentPosition);
|
||||
/// <summary> String for current position pins. </summary>
|
||||
private static string currentPositionPlacePinString = MapPinModel.PinTypeToString(PinType.CurrentPosition);
|
||||
|
||||
/// <summary> The information wc place pin string. </summary>
|
||||
private static string infoWcPlacePinString = MapPinModel.PinTypeToString(PinType.InfoWcPlace);
|
||||
|
||||
/// <summary> The information access place pin string. </summary>
|
||||
private static string infoAccesPlacePinString = MapPinModel.PinTypeToString(PinType.InfoAccesPlace);
|
||||
|
||||
/// <summary> The information red place pin string. </summary>
|
||||
private static string infoRedPlacePinString = MapPinModel.PinTypeToString(PinType.InfoRedPlace);
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Variable of the actual position of the pin
|
||||
/// </summary>
|
||||
/// <summary> Variable of the actual position of the pin. </summary>
|
||||
private Point position;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MapPinModel" /> class.
|
||||
/// </summary>
|
||||
|
||||
/// <summary> Initializes a new instance of the <see cref="MapPinModel" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
public MapPinModel()
|
||||
{
|
||||
}
|
||||
@@ -69,8 +58,9 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
#endregion
|
||||
|
||||
#region enums
|
||||
/// <summary>Values that represent PinType.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
|
||||
/// <summary> Values that represent PinType. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
public enum PinType
|
||||
{
|
||||
/// <summary>An enum constant representing the hidden option.</summary>
|
||||
@@ -84,100 +74,105 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
|
||||
/// <summary>An enum constant representing the info place option.</summary>
|
||||
InfoPlace = 3,
|
||||
|
||||
/// <summary> An enum constant representing the information lab place option. </summary>
|
||||
InfoLabPlace = 4,
|
||||
|
||||
/// <summary> An enum constant representing the information wc place option. </summary>
|
||||
InfoWcPlace = 5,
|
||||
|
||||
/// <summary> An enum constant representing the information red place option. </summary>
|
||||
InfoRedPlace = 6,
|
||||
|
||||
/// <summary> An enum constant representing the information access place option. </summary>
|
||||
InfoAccesPlace = 7
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Property
|
||||
|
||||
/// <summary> Gets the information red place pin string. </summary>
|
||||
/// <value> The information red place pin string. </value>
|
||||
public static string InfoRedPlacePinString
|
||||
{
|
||||
get { return MapPinModel.infoRedPlacePinString; }
|
||||
}
|
||||
|
||||
/// <summary> Gets the information access place pin string. </summary>
|
||||
/// <value> The information access place pin string. </value>
|
||||
public static string InfoAccesPlacePinString
|
||||
{
|
||||
get { return MapPinModel.infoAccesPlacePinString; }
|
||||
}
|
||||
|
||||
/// <summary> Gets the information wc place pin string. </summary>
|
||||
/// <value> The information wc place pin string. </value>
|
||||
public static string InfoWcPlacePinString
|
||||
{
|
||||
get { return MapPinModel.infoWcPlacePinString; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the string of current position pins
|
||||
/// </summary>
|
||||
public static string CurrendPositionPlacePinString
|
||||
/// <summary> Gets the string of current position pins. </summary>
|
||||
/// <value> The current position place pin string. </value>
|
||||
public static string CurrentPositionPlacePinString
|
||||
{
|
||||
get { return MapPinModel.currendPositionPlacePinString; }
|
||||
get { return MapPinModel.currentPositionPlacePinString; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the string of search pins
|
||||
/// </summary>
|
||||
/// <summary> Gets the string of search pins. </summary>
|
||||
/// <value> The search place pin string. </value>
|
||||
public static string SearchPlacePinString
|
||||
{
|
||||
get { return MapPinModel.searchPlacePinString; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the string of hidden pins
|
||||
/// </summary>
|
||||
/// <summary> Gets the string of hidden pins. </summary>
|
||||
/// <value> The hidden place pin string. </value>
|
||||
public static string HiddenPlacePinString
|
||||
{
|
||||
get { return MapPinModel.hiddenPlacePinString; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the string of info pins
|
||||
/// </summary>
|
||||
/// <summary> Gets the string of info pins. </summary>
|
||||
/// <value> The information place pin string. </value>
|
||||
public static string InfoPlacePinString
|
||||
{
|
||||
get { return MapPinModel.infoPlacePinString; }
|
||||
}
|
||||
|
||||
/// <summary> Gets the information lab place pin string. </summary>
|
||||
/// <value> The information lab place pin string. </value>
|
||||
public static string InfoLabPlacePinString
|
||||
{
|
||||
get { return MapPinModel.infoLabPlacePinString; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ImageSource of the pin
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the ImageSource of the pin. </summary>
|
||||
/// <value> The image source. </value>
|
||||
public string ImageSource { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ImageWidth of the pin
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the ImageWidth of the pin. </summary>
|
||||
/// <value> The width of the image. </value>
|
||||
public double ImageWidth { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ImageHeight of the pin
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the ImageHeight of the pin. </summary>
|
||||
/// <value> The height of the image. </value>
|
||||
public double ImageHeight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ZIndex of the pin
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the ZIndex of the pin. </summary>
|
||||
/// <value> The z coordinate index. </value>
|
||||
public int ZIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ImageOffsetX of the pin
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the ImageOffsetX of the pin. </summary>
|
||||
/// <value> The pin image offset x coordinate. </value>
|
||||
public double PinImageOffsetX { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ImageOffsetY of the pin
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the ImageOffsetY of the pin. </summary>
|
||||
/// <value> The pin image offset y coordinate. </value>
|
||||
public double PinImageOffsetY { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets position of the pin
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets position of the pin. </summary>
|
||||
/// <value> The position. </value>
|
||||
public Point Position
|
||||
{
|
||||
get
|
||||
@@ -213,20 +208,18 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the tag of the pin
|
||||
/// </summary>
|
||||
/// <summary> Gets or sets the tag of the pin. </summary>
|
||||
/// <value> The tag. </value>
|
||||
public object Tag { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Method
|
||||
|
||||
/// <summary>
|
||||
/// Method convert PinType to a string
|
||||
/// </summary>
|
||||
/// <param name="type">type of the Pin</param>
|
||||
/// <returns>PinType as string</returns>
|
||||
/// <summary> Method convert PinType to a string. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="type"> type of the Pin. </param>
|
||||
/// <returns> PinType as string. </returns>
|
||||
public static string PinTypeToString(PinType type)
|
||||
{
|
||||
string result = null;
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="SearchPlacePinModel.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>27.08.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// <author>Stubbfel</author>
|
||||
// <date>14.10.2013</date>
|
||||
// <summary>Implements the search place pin model class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Model.Campusmap
|
||||
{
|
||||
using CampusAppWP8.Resources;
|
||||
|
||||
/// <summary>Search pin place model.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Search pin place model. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <seealso cref="T:CampusAppWP8.Model.Campusmap.ClickAblePlacePinModel"/>
|
||||
public class SearchPlacePinModel : ClickAblePlacePinModel
|
||||
{
|
||||
#region Constructor
|
||||
@@ -19,7 +20,7 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SearchPlacePinModel" /> class.
|
||||
/// </summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
public SearchPlacePinModel()
|
||||
{
|
||||
this.ImageSource = Icons.SearchPlace;
|
||||
|
||||
@@ -738,7 +738,7 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ClearMap(new List<string>() { MapPinModel.CurrendPositionPlacePinString });
|
||||
this.ClearMap(new List<string>() { MapPinModel.CurrentPositionPlacePinString });
|
||||
this.SetPinToPosition(lat, log, MapPinModel.PinType.CurrentPosition, scroll);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
<Value>sps</Value>
|
||||
<Value>Stubbfel</Value>
|
||||
<Value>uni</Value>
|
||||
<Value>wc</Value>
|
||||
<Value>wifi</Value>
|
||||
</CollectionProperty>
|
||||
</GlobalSettings>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<SingleLineSuffix value="(None)" />
|
||||
<SingleLineMinColumn value="0" />
|
||||
<LineCommentOnSameLine value="false" />
|
||||
<ImmediateDelete value="false" />
|
||||
<ImmediateDelete value="true" />
|
||||
<DateCulture value="" />
|
||||
<WordWrapColumn value="100" />
|
||||
<AutoDocReplacements value="true" />
|
||||
@@ -95,7 +95,7 @@
|
||||
<AddAccessMethods>
|
||||
<VarTemplate value="varName" />
|
||||
<MemberPrefix />
|
||||
<MultilineAutoProp value="false" />
|
||||
<MultilineAutoProp value="true" />
|
||||
<MethodTemplate value="GetVarName,SetVarName" />
|
||||
<ParamTemplate value="varName" />
|
||||
</AddAccessMethods>
|
||||
|
||||
Reference in New Issue
Block a user