straro
This commit is contained in:
@@ -147,7 +147,7 @@ namespace CampusAppWP8
|
||||
}
|
||||
else
|
||||
{
|
||||
Settings.AppSetting.DevMode = false;
|
||||
Settings.AppSetting.DevMode = true;
|
||||
}
|
||||
|
||||
this.UserSettingsLoaded();
|
||||
|
||||
@@ -22,11 +22,6 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
/// <summary>Variable for the identify of the campus.</summary>
|
||||
private static readonly string Campus = ((int)CampusAppWP8.Model.Setting.UserProfilModel.Campus.CB_MAIN).ToString();
|
||||
|
||||
/// <summary>
|
||||
/// Variable for the PlaceFile
|
||||
/// </summary>
|
||||
private PlacesFile file;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
@@ -57,31 +52,8 @@ namespace CampusAppWP8.Model.Campusmap
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
protected override void LoadSpatials()
|
||||
{
|
||||
if (this.file == null)
|
||||
{
|
||||
this.file = new PlacesFile();
|
||||
}
|
||||
|
||||
this.file.OnLoaded += new PlacesFile.OnIO(this.FileIsReady);
|
||||
this.file.LoadData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method is called if the PlaceFile is loaded
|
||||
/// </summary>
|
||||
private void FileIsReady()
|
||||
{
|
||||
SpsModel model = this.file.Model;
|
||||
|
||||
this.Spatial = new SpsModel();
|
||||
foreach (PlaceModel place in model.Places)
|
||||
{
|
||||
if (place.PlaceId.StartsWith(CBMainMapModel.Campus))
|
||||
{
|
||||
this.Spatial.Places.Add(place);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
using Microsoft.Phone.Controls;
|
||||
using Microsoft.Phone.Shell;
|
||||
using Windows.Networking.Proximity;
|
||||
using CampusAppWP8.File.Places;
|
||||
|
||||
/// <summary>Class for the campusMap page.</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
@@ -38,6 +39,11 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
/// <summary>Variable for the map model.</summary>
|
||||
private CampusMapModel campusMap;
|
||||
|
||||
/// <summary>
|
||||
/// Variable for the PlaceFile
|
||||
/// </summary>
|
||||
private PlacesFile file;
|
||||
|
||||
/// <summary>
|
||||
/// List of information names
|
||||
/// </summary>
|
||||
@@ -73,6 +79,14 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
{
|
||||
menuItem2.Text = AppResources.CampusMapApp_ScanNfc;
|
||||
}
|
||||
|
||||
if (this.file == null)
|
||||
{
|
||||
this.file = new PlacesFile();
|
||||
}
|
||||
|
||||
this.file.OnLoaded += new PlacesFile.OnIO(this.FileIsReady);
|
||||
this.file.LoadData();
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -129,6 +143,11 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
|
||||
#region private
|
||||
|
||||
private void FileIsReady()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method adds pin to the map by given list of placeId
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user