refacto all pages
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="BTUTagInfo.xaml.cs" company="BTU/IIT">
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the btu tag info.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.BTTTag
|
||||
{
|
||||
using System;
|
||||
@@ -6,15 +13,21 @@ namespace CampusAppWP8.Pages.BTTTag
|
||||
using CampusApp8.Model.Setting;
|
||||
using Microsoft.Phone.Controls;
|
||||
|
||||
/// <summary> Information about the btu tag. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class BTUTagInfo : PhoneApplicationPage
|
||||
{
|
||||
|
||||
#region Member
|
||||
/// <summary> The taghandler model. </summary>
|
||||
private TagHandlerListPickerItemListModel taghandlerModel;
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
/// <summary> Initializes a new instance of the BTUTagInfo class. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
public BTUTagInfo()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -28,10 +41,9 @@ namespace CampusAppWP8.Pages.BTTTag
|
||||
|
||||
#region Method
|
||||
|
||||
/// <summary>
|
||||
/// Override the OnNavigatedFrom method
|
||||
/// </summary>
|
||||
/// <param name="e">Arguments of navigation</param>
|
||||
/// <summary> Override the OnNavigatedFrom method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedFrom(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||
{
|
||||
if (NavigationMode.Back == e.NavigationMode)
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="CampusMapPage.xaml.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>15.10.2013</date>
|
||||
// <summary>Implements the campus map page.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Campusmap
|
||||
{
|
||||
using System;
|
||||
@@ -29,51 +30,43 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
using Microsoft.Phone.Controls;
|
||||
using Microsoft.Phone.Shell;
|
||||
|
||||
/// <summary>Class for the campusMap page.</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
/// <summary> Class for the campusMap page. </summary>
|
||||
/// <remarks> Stubbfel, 19.08.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class CampusMapPage : PhoneApplicationPage
|
||||
{
|
||||
#region Member
|
||||
|
||||
/// <summary>The device.</summary>
|
||||
/// <summary> The device. </summary>
|
||||
private readonly ProximityDevice device = ProximityDevice.GetDefault();
|
||||
|
||||
/// <summary>Variable for the map model.</summary>
|
||||
/// <summary> Variable for the map model. </summary>
|
||||
private CampusMapModel campusMap;
|
||||
|
||||
/// <summary>
|
||||
/// Variable for the PlaceFile
|
||||
/// </summary>
|
||||
/// <summary> Variable for the PlaceFile. </summary>
|
||||
private PlacesFile file;
|
||||
|
||||
/// <summary>
|
||||
/// List of information names
|
||||
/// </summary>
|
||||
/// <summary> List of information names. </summary>
|
||||
private List<string> informationsNames;
|
||||
|
||||
/// <summary>
|
||||
/// Flag which indicates if an qrCode scan is running
|
||||
/// </summary>
|
||||
/// <summary> Flag which indicates if an qrCode scan is running. </summary>
|
||||
private bool qrcodeScan = false;
|
||||
|
||||
/// <summary>
|
||||
/// Variable for the last query
|
||||
/// </summary>
|
||||
/// <summary> Variable for the last query. </summary>
|
||||
private string lastQuery;
|
||||
|
||||
/// <summary>
|
||||
/// Flag which indicates the map show information of all buildings
|
||||
/// </summary>
|
||||
/// <summary> Flag which indicates the map show information of all buildings. </summary>
|
||||
private bool buildInfoEnable;
|
||||
|
||||
/// <summary> Identifier for the ndef. </summary>
|
||||
private long ndefId;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="CampusMapPage" /> class.</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
/// <summary> Initializes a new instance of the <see cref="CampusMapPage" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 19.08.2013. </remarks>
|
||||
public CampusMapPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -110,15 +103,12 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
|
||||
#region Events
|
||||
|
||||
/// <summary>
|
||||
/// Delegate for LoadingPlace events
|
||||
/// </summary>
|
||||
/// <param name="args">the events args</param>
|
||||
/// <summary> Delegate for LoadingPlace events. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="args"> the events args. </param>
|
||||
public delegate void LoadingPlace(string args);
|
||||
|
||||
/// <summary>
|
||||
/// Event for loading places
|
||||
/// </summary>
|
||||
/// <summary> Event for loading places. </summary>
|
||||
public event LoadingPlace OnLoadingPlace;
|
||||
|
||||
#endregion
|
||||
@@ -127,9 +117,9 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
|
||||
#region protected
|
||||
|
||||
/// <summary>Methods overrides the OnNavigatedTo-Method.</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
/// <param name="e">some NavigationEventArgs.</param>
|
||||
/// <summary> Methods overrides the OnNavigatedTo-Method. </summary>
|
||||
/// <remarks> Stubbfel, 19.08.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedTo(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
base.OnNavigatedTo(e);
|
||||
@@ -189,10 +179,9 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
ndefId = this.device.SubscribeForMessage(Constants.NCFMessageType_NDEF, this.NDEFHandler);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Methods overrides the OnNavigatedFrom-Method
|
||||
/// </summary>
|
||||
/// <param name="e">some NavigationEventArgs</param>
|
||||
/// <summary> Methods overrides the OnNavigatedFrom-Method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedFrom(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||
{
|
||||
this.device.StopSubscribingForMessage(ndefId);
|
||||
@@ -205,21 +194,19 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
|
||||
#region private
|
||||
|
||||
/// <summary>
|
||||
/// Method set the lastQuery and register to OnLoadingPlace-Event
|
||||
/// </summary>
|
||||
/// <param name="query">the query string</param>
|
||||
/// <param name="action">the event callback</param>
|
||||
/// <summary> Method set the lastQuery and register to OnLoadingPlace-Event. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="query"> the query string. </param>
|
||||
/// <param name="action"> the event callback. </param>
|
||||
private void SetLastQuery(string query, Action<string> action)
|
||||
{
|
||||
this.lastQuery = query;
|
||||
this.OnLoadingPlace = new CampusMapPage.LoadingPlace(action);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method shows certain places as hidden Pin
|
||||
/// </summary>
|
||||
/// <param name="query">the query string</param>
|
||||
/// <summary> Method shows certain places as hidden Pin. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="query"> the query string. </param>
|
||||
private void ShowPlacesByQueryAsHiddenPin(string query)
|
||||
{
|
||||
if (!this.IsMapReady())
|
||||
@@ -232,10 +219,9 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method shows certain places as search Pin
|
||||
/// </summary>
|
||||
/// <param name="query">the query string</param>
|
||||
/// <summary> Method shows certain places as search Pin. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="query"> the query string. </param>
|
||||
private void ShowPlacesByQueryAsSearchPin(string query)
|
||||
{
|
||||
if (!this.IsMapReady())
|
||||
@@ -254,32 +240,33 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method show all places, which match with the query as a pin
|
||||
/// </summary>
|
||||
/// <param name="query">the query string</param>
|
||||
/// <param name="pintype">the type of the pin</param>
|
||||
/// <param name="allPlaces">if its true then send query to the place file otherwise to the CampusMapModel</param>
|
||||
/// <summary> Method show all places, which match with the query as a pin. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="query"> the query string. </param>
|
||||
/// <param name="pintype"> the type of the pin. </param>
|
||||
/// <param name="allPlaces">
|
||||
/// if its true then send query to the place file otherwise to the CampusMapModel.
|
||||
/// </param>
|
||||
private void ShowPlacesByQuery(string query, MapPinModel.PinType pintype, bool allPlaces)
|
||||
{
|
||||
this.AddPins(this.SearchPlaces(query, allPlaces), pintype);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method show all places by placeId
|
||||
/// </summary>
|
||||
/// <param name="placeId">the placeId</param>
|
||||
/// <param name="pintype">the type of the pin</param>
|
||||
/// <param name="allPlaces">if its true then send query to the place file otherwise to the CampusMapModel</param>
|
||||
/// <summary> Method show all places by placeId. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="placeId"> the placeId. </param>
|
||||
/// <param name="pintype"> the type of the pin. </param>
|
||||
/// <param name="allPlaces">
|
||||
/// if its true then send query to the place file otherwise to the CampusMapModel.
|
||||
/// </param>
|
||||
private void ShowPlacesByPlaceId(string placeId, MapPinModel.PinType pintype, bool allPlaces)
|
||||
{
|
||||
this.AddPinsByPids(new List<string>() { placeId }, pintype, false, allPlaces);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method shows places by placeId from place file as search Pin
|
||||
/// </summary>
|
||||
/// <param name="placeId">the placeId</param>
|
||||
/// <summary> Method shows places by placeId from place file as search Pin. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="placeId"> the placeId. </param>
|
||||
private void ShowAllPlacesByPlaceIdAsSearchPin(string placeId)
|
||||
{
|
||||
if (!this.IsMapReady())
|
||||
@@ -292,10 +279,9 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method shows places by placeId from CampusMapModel as search Pin
|
||||
/// </summary>
|
||||
/// <param name="placeId">the placeId</param>
|
||||
/// <summary> Method shows places by placeId from CampusMapModel as search Pin. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="placeId"> the placeId. </param>
|
||||
private void ShowPlacesByPlaceIdAsSearchPin(string placeId)
|
||||
{
|
||||
if (!this.IsMapReady())
|
||||
@@ -308,10 +294,9 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method show all buildings of a campus
|
||||
/// </summary>
|
||||
/// <param name="campusId">the id of the campus</param>
|
||||
/// <summary> Method show all buildings of a campus. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="campusId"> the id of the campus. </param>
|
||||
private void ShowAllCampusBuilding(string campusId)
|
||||
{
|
||||
if (!this.IsMapReady())
|
||||
@@ -324,10 +309,9 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method check if the map loading is finish
|
||||
/// </summary>
|
||||
/// <returns>true, if the map is ready to use, otherwise false</returns>
|
||||
/// <summary> Method check if the map loading is finish. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <returns> true, if the map is ready to use, otherwise false. </returns>
|
||||
private bool IsMapReady()
|
||||
{
|
||||
if (this.campusMap == null || !this.campusMap.IsReady)
|
||||
@@ -338,9 +322,8 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the place file is ready
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the place file is ready. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void FileIsReady()
|
||||
{
|
||||
this.campusMap = new CBMainMapModel(this.file.Model.Places.ToList());
|
||||
@@ -352,10 +335,10 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>TextSearch click method.</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
/// <param name="sender">caller object.</param>
|
||||
/// <param name="e"> some EventArgs.</param>
|
||||
/// <summary> TextSearch click method. </summary>
|
||||
/// <remarks> Stubbfel, 19.08.2013. </remarks>
|
||||
/// <param name="sender"> caller object. </param>
|
||||
/// <param name="e"> some EventArgs. </param>
|
||||
private void SearchByText(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string query = QString.Text.Trim();
|
||||
@@ -369,11 +352,10 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
this.ShowPlacesByQueryAsSearchPin(query);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method insert or remove the buildings pins
|
||||
/// </summary>
|
||||
/// <param name="sender">caller object.</param>
|
||||
/// <param name="e"> some EventArgs.</param>
|
||||
/// <summary> Method insert or remove the buildings pins. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> caller object. </param>
|
||||
/// <param name="e"> some EventArgs. </param>
|
||||
private void ShowBuildingsInformation(object sender, EventArgs e)
|
||||
{
|
||||
string menuText;
|
||||
@@ -394,10 +376,9 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
item.Text = menuText;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method clear the Map
|
||||
/// </summary>
|
||||
/// <param name="removeTags">(optional) tags of the UIElement</param>
|
||||
/// <summary> Method clear the Map. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="removeTags"> (optional) tags of the UIElement. </param>
|
||||
private void ClearMap(List<string> removeTags = null)
|
||||
{
|
||||
if (removeTags == null)
|
||||
@@ -424,13 +405,14 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method adds pin to the map by given list of placeId
|
||||
/// </summary>
|
||||
/// <param name="pidList">list of placeId</param>
|
||||
/// <param name="pinType">type of pin</param>
|
||||
/// <param name="clearCanvas">(optional) if its true, clear canvas before adding</param>
|
||||
/// <param name="allPlaces">(optional) if its true, load place from place file, otherwise from CampusMapModel</param>
|
||||
/// <summary> Method adds pin to the map by given list of placeId. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="pidList"> list of placeId. </param>
|
||||
/// <param name="pinType"> type of pin. </param>
|
||||
/// <param name="clearCanvas"> (optional) if its true, clear canvas before adding. </param>
|
||||
/// <param name="allPlaces">
|
||||
/// (optional) if its true, load place from place file, otherwise from CampusMapModel.
|
||||
/// </param>
|
||||
private void AddPinsByPids(List<string> pidList, MapPinModel.PinType pinType, bool clearCanvas = true, bool allPlaces = false)
|
||||
{
|
||||
// clear canvas
|
||||
@@ -477,11 +459,10 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method start a NFCScan
|
||||
/// </summary>
|
||||
/// <param name="sender">sender of event</param>
|
||||
/// <param name="e">the event args</param>
|
||||
/// <summary> Method start a NFCScan. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> sender of event. </param>
|
||||
/// <param name="e"> the event args. </param>
|
||||
private void SearchPlaceByNFC_Click(object sender, EventArgs e)
|
||||
{
|
||||
MessageBoxes.ShowMainModelInfoMessageBox(AppResources.ScarNfc_Search);
|
||||
@@ -490,11 +471,10 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
this.ndefId = this.device.SubscribeForMessage(Constants.NCFMessageType_NDEF, this.NDEFHandler);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method start a QRCodeScan
|
||||
/// </summary>
|
||||
/// <param name="sender">sender of event</param>
|
||||
/// <param name="e">the event args</param>
|
||||
/// <summary> Method start a QRCodeScan. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> sender of event. </param>
|
||||
/// <param name="e"> the event args. </param>
|
||||
private void SearchPlaceByQR_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.qrcodeScan = true;
|
||||
@@ -504,11 +484,10 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
this.NavigationService.Navigate(url);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method handle the result of a NFCScan
|
||||
/// </summary>
|
||||
/// <param name="sender">the sender device</param>
|
||||
/// <param name="message">the message of the device</param>
|
||||
/// <summary> Method handle the result of a NFCScan. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> the sender device. </param>
|
||||
/// <param name="message"> the message of the device. </param>
|
||||
private void NDEFHandler(ProximityDevice sender, ProximityMessage message)
|
||||
{
|
||||
// create ndefMessage
|
||||
@@ -575,11 +554,13 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
|
||||
}
|
||||
|
||||
/// <summary>Searches for the first places.</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
/// <param name="query">The query.</param>
|
||||
/// <param name="allPlaces">(optional) if its true, search places in place file, otherwise in CampusMapModel</param>
|
||||
/// <returns>The found places.</returns>
|
||||
/// <summary> Searches for the first places. </summary>
|
||||
/// <remarks> Stubbfel, 19.08.2013. </remarks>
|
||||
/// <param name="query"> The query. </param>
|
||||
/// <param name="allPlaces">
|
||||
/// (optional) if its true, search places in place file, otherwise in CampusMapModel.
|
||||
/// </param>
|
||||
/// <returns> The found places. </returns>
|
||||
private List<PlaceModel> SearchPlaces(string query, bool allPlaces = false)
|
||||
{
|
||||
SpsModel spatial;
|
||||
@@ -609,11 +590,11 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
return spatial.GetPlacesByInformation(query, true, this.informationsNames);
|
||||
}
|
||||
|
||||
/// <summary>Adds the pins.</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
/// <param name="places">The places.</param>
|
||||
/// <param name="type"> The type.</param>
|
||||
/// <param name="scroll">(Optional) the scroll.</param>
|
||||
/// <summary> Adds the pins. </summary>
|
||||
/// <remarks> Stubbfel, 19.08.2013. </remarks>
|
||||
/// <param name="places"> The places. </param>
|
||||
/// <param name="type"> The type. </param>
|
||||
/// <param name="scroll"> (Optional) the scroll. </param>
|
||||
private void AddPins(List<PlaceModel> places, MapPinModel.PinType type, bool scroll = true)
|
||||
{
|
||||
foreach (PlaceModel place in places)
|
||||
@@ -633,13 +614,15 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Add Pin to an certain position.</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
/// <param name="x"> longitude parameter.</param>
|
||||
/// <param name="y"> latitude parameter.</param>
|
||||
/// <param name="type"> The type.</param>
|
||||
/// <param name="scroll">(Optional) the scroll.</param>
|
||||
/// <param name="assocPlaces">(Optional) List of places, whose are associative with the pin</param>
|
||||
/// <summary> Add Pin to an certain position. </summary>
|
||||
/// <remarks> Stubbfel, 19.08.2013. </remarks>
|
||||
/// <param name="x"> longitude parameter. </param>
|
||||
/// <param name="y"> latitude parameter. </param>
|
||||
/// <param name="type"> The type. </param>
|
||||
/// <param name="scroll"> (Optional) the scroll. </param>
|
||||
/// <param name="assocPlaces">
|
||||
/// (Optional) List of places, whose are associative with the pin.
|
||||
/// </param>
|
||||
private void AddPin(double x, double y, MapPinModel.PinType type, bool scroll = true, List<PlaceModel> assocPlaces = null)
|
||||
{
|
||||
Point scrollPoint = this.campusMap.GetScrollPoint(this.campusMap.ConverToPixelPoint(this.campusMap.ConverToMapPoint(x, y)));
|
||||
@@ -670,18 +653,18 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>On clicking the update button in the ApplicationBar.</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
/// <param name="sender">caller object.</param>
|
||||
/// <param name="e"> some EventArgs.</param>
|
||||
/// <summary> On clicking the update button in the ApplicationBar. </summary>
|
||||
/// <remarks> Stubbfel, 19.08.2013. </remarks>
|
||||
/// <param name="sender"> caller object. </param>
|
||||
/// <param name="e"> some EventArgs. </param>
|
||||
private void UpdateButtonAppBar_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.ShowCurrentPositionDispatcher();
|
||||
}
|
||||
|
||||
/// <summary>execute ShowCurrentPosition-Method via Dispatcher.</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
/// <param name="scroll">(Optional) the scroll.</param>
|
||||
/// <summary> execute ShowCurrentPosition-Method via Dispatcher. </summary>
|
||||
/// <remarks> Stubbfel, 19.08.2013. </remarks>
|
||||
/// <param name="scroll"> (Optional) the scroll. </param>
|
||||
private void ShowCurrentPositionDispatcher(bool scroll = true)
|
||||
{
|
||||
this.DefHeader.ProgressVisibility = Visibility.Visible;
|
||||
@@ -690,9 +673,9 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
thread.Start();
|
||||
}
|
||||
|
||||
/// <summary>Method add a pin on the at the position of the phone.</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
/// <param name="scroll">(Optional) the scroll.</param>
|
||||
/// <summary> Method add a pin on the at the position of the phone. </summary>
|
||||
/// <remarks> Stubbfel, 19.08.2013. </remarks>
|
||||
/// <param name="scroll"> (Optional) the scroll. </param>
|
||||
private void ShowCurrentPosition(bool scroll = true)
|
||||
{
|
||||
if (Settings.AppSetting.GeoWatchEnable)
|
||||
@@ -720,9 +703,9 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Sets pin to current position.</summary>
|
||||
/// <remarks>Stubbfel, 19.08.2013.</remarks>
|
||||
/// <param name="scroll">(Optional) the scroll.</param>
|
||||
/// <summary> Sets pin to current position. </summary>
|
||||
/// <remarks> Stubbfel, 19.08.2013. </remarks>
|
||||
/// <param name="scroll"> (Optional) the scroll. </param>
|
||||
private void SetPinToCurrentPosition(bool scroll = true)
|
||||
{
|
||||
string lat = App.LoadFromAppState<string>(Constants.GeoWatch_CurrentPosition_Lat);
|
||||
@@ -743,12 +726,12 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Sets pin to position.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <param name="latitude"> The latitude.</param>
|
||||
/// <param name="longitude">The longitude.</param>
|
||||
/// <param name="type"> The type.</param>
|
||||
/// <param name="scroll"> (Optional) the scroll.</param>
|
||||
/// <summary> Sets pin to position. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
/// <param name="latitude"> The latitude. </param>
|
||||
/// <param name="longitude"> The longitude. </param>
|
||||
/// <param name="type"> The type. </param>
|
||||
/// <param name="scroll"> (Optional) the scroll. </param>
|
||||
private void SetPinToPosition(string latitude, string longitude, MapPinModel.PinType type, bool scroll = true)
|
||||
{
|
||||
double x;
|
||||
@@ -762,10 +745,9 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method show same PlaceInformation
|
||||
/// </summary>
|
||||
/// <param name="places">List of places</param>
|
||||
/// <summary> Method show same PlaceInformation. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="places"> List of places. </param>
|
||||
private void ShowMapInfo(List<PlaceModel> places)
|
||||
{
|
||||
if (places == null)
|
||||
@@ -821,6 +803,10 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary> Go to room list. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="buildingId"> Identifier for the building. </param>
|
||||
/// <param name="roomId"> (Optional) identifier for the room. </param>
|
||||
private void GoToRoomList(string buildingId, string roomId = null)
|
||||
{
|
||||
string urlString = Constants.PathCampusmap_RoomListPage;
|
||||
@@ -833,12 +819,10 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
this.NavigationService.Navigate(url);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Method check if a certain place has some rooms
|
||||
/// </summary>
|
||||
/// <param name="placeId">the place id</param>
|
||||
/// <returns>true, if the place has got rooms, otherwise false</returns>
|
||||
/// <summary> Method check if a certain place has some rooms. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="placeId"> the place id. </param>
|
||||
/// <returns> true, if the place has got rooms, otherwise false. </returns>
|
||||
private bool HasRooms(string placeId)
|
||||
{
|
||||
foreach (PlaceModel place in this.file.Model.Places)
|
||||
@@ -852,7 +836,10 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/// <summary> Event handler. Called by Button for key down events. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> caller object. </param>
|
||||
/// <param name="e"> Key event information. </param>
|
||||
private void Button_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
|
||||
{
|
||||
if (e.Key == Key.Enter)
|
||||
|
||||
@@ -1,29 +1,28 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="RoomListPage.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>23.09.2013</sience>
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the room list page.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Campusmap
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Navigation;
|
||||
using CampusAppWP8.File.Places;
|
||||
using CampusAppWP8.Model.GeoDb;
|
||||
using CampusAppWP8.Resources;
|
||||
using Microsoft.Phone.Controls;
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
using CampusAppWP8.Model.Campusmap;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using CampusAppWP8.Utility;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Navigation;
|
||||
using CampusAppWP8.File.Places;
|
||||
using CampusAppWP8.Model.Campusmap;
|
||||
using CampusAppWP8.Model.GeoDb;
|
||||
using CampusAppWP8.Resources;
|
||||
using CampusAppWP8.Utility;
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
using CampusAppWPortalLib8.Model.Utility;
|
||||
using Microsoft.Phone.Controls;
|
||||
|
||||
/// <summary> Class of the RoomListPage. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
@@ -42,10 +41,13 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
|
||||
/// <summary> true to pinch run. </summary>
|
||||
private bool pinchRun = false;
|
||||
/// <summary> The mappoint. </summary>
|
||||
|
||||
/// <summary> The MapPoint. </summary>
|
||||
private Point mappoint;
|
||||
|
||||
/// <summary> The offset point. </summary>
|
||||
private Point offsetPoint;
|
||||
|
||||
/// <summary> The layer list picker. </summary>
|
||||
private ListPickerItemListModel layerListPicker;
|
||||
|
||||
@@ -109,8 +111,8 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
{
|
||||
if (NavigationContext.QueryString.ContainsKey(Constants.ParamBuildingId))
|
||||
{
|
||||
this.setupCanvas(NavigationContext.QueryString[Constants.ParamBuildingId]);
|
||||
this.createLayerListPicker();
|
||||
this.SetupCanvas(NavigationContext.QueryString[Constants.ParamBuildingId]);
|
||||
this.CreateLayerListPicker();
|
||||
|
||||
if (this.building != null && this.building.Layers != null && this.building.Layers.Count > 0)
|
||||
{
|
||||
@@ -120,10 +122,11 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
if (layerKey != null)
|
||||
{
|
||||
this.Layer.SelectedIndex = this.layerListPicker.GetIndexOrDefault(layerKey);
|
||||
this.showCurrentRoom(NavigationContext.QueryString[Constants.ParamRoomId]);
|
||||
this.ShowCurrentRoom(NavigationContext.QueryString[Constants.ParamRoomId]);
|
||||
}
|
||||
}
|
||||
this.showLayerPlaces(((ListPickerItemModel)this.Layer.SelectedItem).Value);
|
||||
|
||||
this.ShowLayerPlaces(((ListPickerItemModel)this.Layer.SelectedItem).Value);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -134,15 +137,13 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
{
|
||||
MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoad);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary> Shows the current room. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="placeId"> Identifier for the place. </param>
|
||||
private void showCurrentRoom(string placeId)
|
||||
private void ShowCurrentRoom(string placeId)
|
||||
{
|
||||
|
||||
double x;
|
||||
double y;
|
||||
|
||||
@@ -153,7 +154,7 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
x = room.GeoRefPoint.Longitude;
|
||||
y = room.GeoRefPoint.Latitude;
|
||||
Point roompoint = this.buildingMap.GetScrollPoint(this.buildingMap.ConverToPixelPoint(this.buildingMap.ConverToMapPoint(x, y)));
|
||||
Point viewPoint = new Point(roompoint.X - mappoint.X + offsetPoint.X, roompoint.Y - mappoint.Y + offsetPoint.Y);
|
||||
Point viewPoint = new Point(roompoint.X - this.mappoint.X + this.offsetPoint.X, roompoint.Y - this.mappoint.Y + this.offsetPoint.Y);
|
||||
|
||||
MapCanvas.Children.Add(this.buildingMap.AddPin(viewPoint, MapPinModel.PinType.InfoRedPlace, new List<PlaceModel> { room }));
|
||||
}
|
||||
@@ -167,11 +168,13 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
string msgText = string.Empty;
|
||||
if (places == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (PlaceModel place in places)
|
||||
{
|
||||
msgText += AppResources.PlaceLabel_Name + ": ";
|
||||
@@ -228,7 +231,6 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
double scaleVal = pinch.CumulativeScale;
|
||||
if (scaleVal < 1)
|
||||
{
|
||||
|
||||
scaleVal = 1;
|
||||
}
|
||||
else if (scaleVal > 1.5)
|
||||
@@ -239,8 +241,6 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
scale.ScaleX = scaleVal;
|
||||
scale.ScaleY = scaleVal;
|
||||
|
||||
|
||||
|
||||
var newCenter = e.PinchManipulation.Current.Center;
|
||||
scale.CenterX = newCenter.X;
|
||||
scale.CenterY = newCenter.Y;
|
||||
@@ -266,21 +266,22 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
|
||||
/// <summary> Creates layer list picker. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
private void createLayerListPicker()
|
||||
private void CreateLayerListPicker()
|
||||
{
|
||||
layerListPicker = new ListPickerItemListModel();
|
||||
this.layerListPicker = new ListPickerItemListModel();
|
||||
|
||||
foreach (string layername in this.building.Layers.Keys)
|
||||
{
|
||||
layerListPicker.AddItem(layername, layername);
|
||||
this.layerListPicker.AddItem(layername, layername);
|
||||
}
|
||||
this.Layer.ItemsSource = layerListPicker.List;
|
||||
|
||||
this.Layer.ItemsSource = this.layerListPicker.List;
|
||||
}
|
||||
|
||||
/// <summary> Shows the layer places. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="layerKey"> (Optional) the layer key. </param>
|
||||
private void showLayerPlaces(string layerKey = null)
|
||||
private void ShowLayerPlaces(string layerKey = null)
|
||||
{
|
||||
if (layerKey == null)
|
||||
{
|
||||
@@ -298,7 +299,7 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
x = room.GeoRefPoint.Longitude;
|
||||
y = room.GeoRefPoint.Latitude;
|
||||
Point roompoint = this.buildingMap.GetScrollPoint(this.buildingMap.ConverToPixelPoint(this.buildingMap.ConverToMapPoint(x, y)));
|
||||
Point viewPoint = new Point(roompoint.X - mappoint.X + offsetPoint.X, roompoint.Y - mappoint.Y + offsetPoint.Y);
|
||||
Point viewPoint = new Point(roompoint.X - this.mappoint.X + this.offsetPoint.X, roompoint.Y - this.mappoint.Y + this.offsetPoint.Y);
|
||||
|
||||
MapPinModel.PinType type;
|
||||
|
||||
@@ -318,8 +319,8 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
default:
|
||||
type = MapPinModel.PinType.InfoPlace;
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
MapCanvas.Children.Add(this.buildingMap.AddPin(viewPoint, type, new List<PlaceModel> { room }));
|
||||
}
|
||||
|
||||
@@ -329,16 +330,16 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
/// <summary> Shows the layer places. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="index"> (Optional) zero-based index of the. </param>
|
||||
private void showLayerPlaces(int index = 0)
|
||||
private void ShowLayerPlaces(int index = 0)
|
||||
{
|
||||
string layerKey = this.building.Layers.Keys.ElementAt(index);
|
||||
this.showLayerPlaces(layerKey);
|
||||
this.ShowLayerPlaces(layerKey);
|
||||
}
|
||||
|
||||
/// <summary> Sets up the canvas. </summary>
|
||||
/// <remarks> Stubbfel, 14.10.2013. </remarks>
|
||||
/// <param name="buildingId"> Identifier for the building. </param>
|
||||
private void setupCanvas(string buildingId)
|
||||
private void SetupCanvas(string buildingId)
|
||||
{
|
||||
this.building = new CampusBuildingModel(buildingId, this.placeFile.Model.Places.ToList());
|
||||
|
||||
@@ -348,13 +349,13 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
|
||||
double y = this.building.Building.GeoRefPoint.Latitude;
|
||||
double x = this.building.Building.GeoRefPoint.Longitude;
|
||||
mappoint = this.buildingMap.GetScrollPoint(this.buildingMap.ConverToPixelPoint(this.buildingMap.ConverToMapPoint(x, y)));
|
||||
offsetPoint = new Point(-this.buildingMap.MapImageOffsetX, -this.buildingMap.MapImageOffsetY);
|
||||
this.mappoint = this.buildingMap.GetScrollPoint(this.buildingMap.ConverToPixelPoint(this.buildingMap.ConverToMapPoint(x, y)));
|
||||
this.offsetPoint = new Point(-this.buildingMap.MapImageOffsetX, -this.buildingMap.MapImageOffsetY);
|
||||
|
||||
this.MapCanvas.DataContext = buildingMap;
|
||||
this.MapCanvas.DataContext = this.buildingMap;
|
||||
|
||||
Canvas.SetLeft(this.imgMap, -1 * mappoint.X);
|
||||
Canvas.SetTop(this.imgMap, -1 * mappoint.Y);
|
||||
Canvas.SetLeft(this.imgMap, -1 * this.mappoint.X);
|
||||
Canvas.SetTop(this.imgMap, -1 * this.mappoint.Y);
|
||||
Canvas.SetZIndex(this.imgMap, 0);
|
||||
}
|
||||
|
||||
@@ -364,7 +365,7 @@ namespace CampusAppWP8.Pages.Campusmap
|
||||
/// <param name="e"> Selection changed event information. </param>
|
||||
private void Layer_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
this.showLayerPlaces(((ListPickerItemModel)this.Layer.SelectedItem).Value);
|
||||
this.ShowLayerPlaces(((ListPickerItemModel)this.Layer.SelectedItem).Value);
|
||||
}
|
||||
|
||||
/// <summary> Clears the map described by removeTags. </summary>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="NFC.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>08.08.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the nfc .xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Dev
|
||||
{
|
||||
using System;
|
||||
@@ -14,36 +14,37 @@ namespace CampusAppWP8.Pages.Dev
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using System.Windows;
|
||||
using System.Windows.Navigation;
|
||||
using CampusAppWP8.Model.Campusmap;
|
||||
using CampusAppWP8.File.Places;
|
||||
using CampusAppWP8.Model.GeoDb;
|
||||
using CampusAppWP8.Utility.NDEF;
|
||||
using Microsoft.Phone.Controls;
|
||||
using Windows.Networking.Proximity;
|
||||
using CampusAppWP8.File.Places;
|
||||
|
||||
/// <summary>Nfc page.</summary>
|
||||
/// <remarks>Stubbfel, 22.08.2013.</remarks>
|
||||
/// <summary> Nfc page. </summary>
|
||||
/// <remarks> Stubbfel, 22.08.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class NFC : PhoneApplicationPage
|
||||
{
|
||||
#region Member
|
||||
|
||||
/// <summary>The device.</summary>
|
||||
/// <summary> The device. </summary>
|
||||
private readonly ProximityDevice device = ProximityDevice.GetDefault();
|
||||
|
||||
/// <summary>Zero-based index of the act ndef.</summary>
|
||||
/// <summary> Zero-based index of the act ndef. </summary>
|
||||
private int actNDEFIndex;
|
||||
|
||||
/// <summary>List of ndefs.</summary>
|
||||
/// <summary> List of ndefs. </summary>
|
||||
private List<NDEFMessage> ndefList;
|
||||
|
||||
/// <summary> The file. </summary>
|
||||
private PlacesFile file;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
/// <summary>Initializes a new instance of the NFC class.</summary>
|
||||
/// <remarks>Stubbfel, 22.08.2013.</remarks>
|
||||
/// <summary> Initializes a new instance of the NFC class. </summary>
|
||||
/// <remarks> Stubbfel, 22.08.2013. </remarks>
|
||||
public NFC()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -56,32 +57,18 @@ namespace CampusAppWP8.Pages.Dev
|
||||
this.file.OnLoaded += new PlacesFile.OnIO(this.FileIsReady);
|
||||
this.file.LoadData();
|
||||
|
||||
|
||||
|
||||
this.actNDEFIndex = 0;
|
||||
}
|
||||
|
||||
private void FileIsReady()
|
||||
{
|
||||
this.ndefList = new List<NDEFMessage>();
|
||||
//MapModel map = new CBMainMapModel(this.file.Model.Places.ToList());
|
||||
foreach (PlaceModel place in this.file.Model.Places.ToList())
|
||||
{
|
||||
this.ndefList.Add(new NDEFMessage(place.ToNfcString(), NDEFMessage.TYPEVAL.TEXT));
|
||||
}
|
||||
|
||||
this.Writecontent.Text = this.ndefList[this.actNDEFIndex].GetContent();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Method
|
||||
|
||||
#region protected
|
||||
|
||||
/// <summary>Override the OnNavigatedTo method.</summary>
|
||||
/// <remarks>Stubbfel, 22.08.2013.</remarks>
|
||||
/// <param name="e">Arguments of navigation.</param>
|
||||
/// <summary> Override the OnNavigatedTo method. </summary>
|
||||
/// <remarks> Stubbfel, 22.08.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedTo(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
base.OnNavigatedTo(e);
|
||||
@@ -91,20 +78,35 @@ namespace CampusAppWP8.Pages.Dev
|
||||
|
||||
#region private
|
||||
|
||||
/// <summary>Handler, called when the publish.</summary>
|
||||
/// <remarks>Stubbfel, 22.08.2013.</remarks>
|
||||
/// <param name="sender"> The sender.</param>
|
||||
/// <param name="messageId">Identifier for the message.</param>
|
||||
/// <summary> File is ready. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void FileIsReady()
|
||||
{
|
||||
this.ndefList = new List<NDEFMessage>();
|
||||
|
||||
// MapModel map = new CBMainMapModel(this.file.Model.Places.ToList());
|
||||
foreach (PlaceModel place in this.file.Model.Places.ToList())
|
||||
{
|
||||
this.ndefList.Add(new NDEFMessage(place.ToNfcString(), NDEFMessage.TYPEVAL.TEXT));
|
||||
}
|
||||
|
||||
this.Writecontent.Text = this.ndefList[this.actNDEFIndex].GetContent();
|
||||
}
|
||||
|
||||
/// <summary> Handler, called when the publish. </summary>
|
||||
/// <remarks> Stubbfel, 22.08.2013. </remarks>
|
||||
/// <param name="sender"> The sender. </param>
|
||||
/// <param name="messageId"> Identifier for the message. </param>
|
||||
private void PublishHandler(ProximityDevice sender, long messageId)
|
||||
{
|
||||
this.device.StopPublishingMessage(messageId);
|
||||
this.Dispatcher.BeginInvoke(new Action(() => MessageBox.Show("Writed:" + this.actNDEFIndex)));
|
||||
}
|
||||
|
||||
/// <summary>Handler, called when the ndef.</summary>
|
||||
/// <remarks>Stubbfel, 22.08.2013.</remarks>
|
||||
/// <param name="sender"> The sender.</param>
|
||||
/// <param name="message">The message.</param>
|
||||
/// <summary> Handler, called when the ndef. </summary>
|
||||
/// <remarks> Stubbfel, 22.08.2013. </remarks>
|
||||
/// <param name="sender"> The sender. </param>
|
||||
/// <param name="message"> The message. </param>
|
||||
private void NDEFHandler(ProximityDevice sender, ProximityMessage message)
|
||||
{
|
||||
this.device.StopSubscribingForMessage(message.SubscriptionId);
|
||||
@@ -115,19 +117,19 @@ namespace CampusAppWP8.Pages.Dev
|
||||
this.Dispatcher.BeginInvoke(new Action(() => MessageBox.Show(ndef.GetContent())));
|
||||
}
|
||||
|
||||
/// <summary>Event handler. Called by Read for click events.</summary>
|
||||
/// <remarks>Stubbfel, 22.08.2013.</remarks>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e"> Routed event information.</param>
|
||||
/// <summary> Event handler. Called by Read for click events. </summary>
|
||||
/// <remarks> Stubbfel, 22.08.2013. </remarks>
|
||||
/// <param name="sender"> The sender. </param>
|
||||
/// <param name="e"> Routed event information. </param>
|
||||
private void Read_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.device.SubscribeForMessage("NDEF", this.NDEFHandler);
|
||||
}
|
||||
|
||||
/// <summary>Event handler. Called by Next for click events.</summary>
|
||||
/// <remarks>Stubbfel, 22.08.2013.</remarks>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e"> Routed event information.</param>
|
||||
/// <summary> Event handler. Called by Next for click events. </summary>
|
||||
/// <remarks> Stubbfel, 22.08.2013. </remarks>
|
||||
/// <param name="sender"> The sender. </param>
|
||||
/// <param name="e"> Routed event information. </param>
|
||||
private void Next_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (this.actNDEFIndex < this.ndefList.Count - 1)
|
||||
@@ -137,10 +139,10 @@ namespace CampusAppWP8.Pages.Dev
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Event handler. Called by Prev for click events.</summary>
|
||||
/// <remarks>Stubbfel, 22.08.2013.</remarks>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e"> Routed event information.</param>
|
||||
/// <summary> Event handler. Called by Prev for click events. </summary>
|
||||
/// <remarks> Stubbfel, 22.08.2013. </remarks>
|
||||
/// <param name="sender"> The sender. </param>
|
||||
/// <param name="e"> Routed event information. </param>
|
||||
private void Prev_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (this.actNDEFIndex > 0)
|
||||
@@ -150,10 +152,10 @@ namespace CampusAppWP8.Pages.Dev
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Event handler. Called by Write for click events.</summary>
|
||||
/// <remarks>Stubbfel, 22.08.2013.</remarks>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e"> Routed event information.</param>
|
||||
/// <summary> Event handler. Called by Write for click events. </summary>
|
||||
/// <remarks> Stubbfel, 22.08.2013. </remarks>
|
||||
/// <param name="sender"> The sender. </param>
|
||||
/// <param name="e"> Routed event information. </param>
|
||||
private void Write_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.device.PublishBinaryMessage("NDEF:WriteTag", this.ndefList[this.actNDEFIndex].ToByteArray().AsBuffer(), this.PublishHandler);
|
||||
|
||||
@@ -1,66 +1,67 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="QRScanner.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>fiedlchr</author>
|
||||
// <sience>15.08.2013</sience>
|
||||
// <remarks>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the qr scanner.xaml class</summary>
|
||||
// <remarks>
|
||||
// This Class uses the ZXing library, which is under the Apache License 2.0.
|
||||
//
|
||||
//
|
||||
// Therefor, see:
|
||||
// http://zxingnet.codeplex.com/license
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
// </remarks>
|
||||
//-----------------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
namespace CampusAppWP8.Pages.Dev
|
||||
{
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Media.Imaging;
|
||||
using CampusAppWP8.Model.Setting;
|
||||
using CampusAppWP8.Resources;
|
||||
using CampusAppWP8.Utility;
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
using Microsoft.Devices;
|
||||
using Microsoft.Phone.Controls;
|
||||
using ZXing;
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
using CampusAppWP8.Model.Setting;
|
||||
|
||||
/// <summary>
|
||||
/// QR Code scanner.
|
||||
/// </summary>
|
||||
/// <summary> QR Code scanner. </summary>
|
||||
/// <remarks> fiedlchr, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class QRScanner : PhoneApplicationPage
|
||||
{
|
||||
#region Member
|
||||
|
||||
/// <summary>The camera object.</summary>
|
||||
/// <summary> The camera object. </summary>
|
||||
private PhotoCamera cam = null;
|
||||
|
||||
/// <summary>Thread for transfer the preview image to the reader.</summary>
|
||||
/// <summary> Thread for transfer the preview image to the reader. </summary>
|
||||
private Thread captureThread = null;
|
||||
|
||||
/// <summary>For ending the thread.</summary>
|
||||
/// <summary> For ending the thread. </summary>
|
||||
private volatile bool captureThreadExit = false;
|
||||
|
||||
/// <summary>QR reader object.</summary>
|
||||
/// <summary> QR reader object. </summary>
|
||||
private IBarcodeReader barcodeReader = null;
|
||||
|
||||
/// <summary>Bitmap for transfer the camera image to the reader.</summary>
|
||||
/// <summary> Bitmap for transfer the camera image to the reader. </summary>
|
||||
private WriteableBitmap bit = null;
|
||||
|
||||
/// <summary>true if this object is in autofocus. </summary>
|
||||
/// <summary> true if this object is in autofocus. </summary>
|
||||
private bool isInAutofocus = false;
|
||||
|
||||
/// <summary>
|
||||
/// Variable for the storage key of the result
|
||||
/// </summary>
|
||||
/// <summary> Variable for the storage key of the result. </summary>
|
||||
private string resultAppStoreKey;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="QRScanner" /> class. </summary>
|
||||
/// <summary> Initializes a new instance of the <see cref="QRScanner" /> class. </summary>
|
||||
/// <remarks> fiedlchr, 15.10.2013. </remarks>
|
||||
public QRScanner()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -73,10 +74,9 @@ namespace CampusAppWP8.Pages.Dev
|
||||
|
||||
#region protected
|
||||
|
||||
/// <summary>
|
||||
/// Is called when this page will become the current page of a frame.
|
||||
/// </summary>
|
||||
/// <param name="e">event args.</param>
|
||||
/// <summary> Is called when this page will become the current page of a frame. </summary>
|
||||
/// <remarks> fiedlchr, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
|
||||
{
|
||||
if (PhotoCamera.IsCameraTypeSupported(CameraType.Primary) == true)
|
||||
@@ -85,6 +85,7 @@ namespace CampusAppWP8.Pages.Dev
|
||||
{
|
||||
this.resultAppStoreKey = NavigationContext.QueryString[Constants.ParamQRResultKey];
|
||||
}
|
||||
|
||||
this.isInAutofocus = true;
|
||||
this.cam = new PhotoCamera(CameraType.Primary);
|
||||
this.cam.Initialized += new EventHandler<CameraOperationCompletedEventArgs>(this.Cam_Initialized);
|
||||
@@ -102,10 +103,9 @@ namespace CampusAppWP8.Pages.Dev
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Is called when this page will not be the current page of a frame.
|
||||
/// </summary>
|
||||
/// <param name="e">event args.</param>
|
||||
/// <summary> Is called when this page will not be the current page of a frame. </summary>
|
||||
/// <remarks> fiedlchr, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatingFrom(System.Windows.Navigation.NavigatingCancelEventArgs)"/>
|
||||
protected override void OnNavigatingFrom(System.Windows.Navigation.NavigatingCancelEventArgs e)
|
||||
{
|
||||
if (this.cam != null)
|
||||
@@ -116,7 +116,6 @@ namespace CampusAppWP8.Pages.Dev
|
||||
{
|
||||
this.captureThread.Join();
|
||||
}
|
||||
|
||||
|
||||
this.cam.Dispose();
|
||||
|
||||
@@ -124,10 +123,9 @@ namespace CampusAppWP8.Pages.Dev
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Is called after the orientation has changed.
|
||||
/// </summary>
|
||||
/// <param name="e">event args.</param>
|
||||
/// <summary> Is called after the orientation has changed. </summary>
|
||||
/// <remarks> fiedlchr, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:Microsoft.Phone.Controls.PhoneApplicationPage.OnOrientationChanged(OrientationChangedEventArgs)"/>
|
||||
protected override void OnOrientationChanged(OrientationChangedEventArgs e)
|
||||
{
|
||||
base.OnOrientationChanged(e);
|
||||
@@ -159,11 +157,10 @@ namespace CampusAppWP8.Pages.Dev
|
||||
|
||||
#region private
|
||||
|
||||
/// <summary>
|
||||
/// Event handler. Called by Cam for initialized events.
|
||||
/// </summary>
|
||||
/// <param name="sender">Source of the event.</param>
|
||||
/// <param name="e">Camera operation completed event information.</param>
|
||||
/// <summary> Event handler. Called by Cam for initialized events. </summary>
|
||||
/// <remarks> fiedlchr, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Source of the event. </param>
|
||||
/// <param name="e"> Camera operation completed event information. </param>
|
||||
private void Cam_Initialized(object sender, Microsoft.Devices.CameraOperationCompletedEventArgs e)
|
||||
{
|
||||
if (e.Succeeded)
|
||||
@@ -179,21 +176,18 @@ namespace CampusAppWP8.Pages.Dev
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Event handler. Called by Cam for automatic focus completed events.
|
||||
/// </summary>
|
||||
/// <param name="sender">Source of the event.</param>
|
||||
/// <param name="e">Camera operation completed event information.</param>
|
||||
/// <summary> Event handler. Called by Cam for automatic focus completed events. </summary>
|
||||
/// <remarks> fiedlchr, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Source of the event. </param>
|
||||
/// <param name="e"> Camera operation completed event information. </param>
|
||||
private void Cam_AutoFocusCompl(object sender, CameraOperationCompletedEventArgs e)
|
||||
{
|
||||
//this.isInAutofocus = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Event handler. Called by CamView for tap events.
|
||||
/// </summary>
|
||||
/// <param name="sender">Source of the event.</param>
|
||||
/// <param name="e">Gesture event information.</param>
|
||||
/// <summary> Event handler. Called by CamView for tap events. </summary>
|
||||
/// <remarks> fiedlchr, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Source of the event. </param>
|
||||
/// <param name="e"> Gesture event information. </param>
|
||||
private void CamView_Tap(object sender, System.Windows.Input.GestureEventArgs e)
|
||||
{
|
||||
if (this.cam != null && this.isInAutofocus == false)
|
||||
@@ -213,12 +207,11 @@ namespace CampusAppWP8.Pages.Dev
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Executes the capture image action.
|
||||
/// </summary>
|
||||
/// <param name="img">The image.</param>
|
||||
/// <param name="width">The width.</param>
|
||||
/// <param name="height">The height.</param>
|
||||
/// <summary> Executes the capture image action. </summary>
|
||||
/// <remarks> fiedlchr, 15.10.2013. </remarks>
|
||||
/// <param name="img"> The image. </param>
|
||||
/// <param name="width"> The width. </param>
|
||||
/// <param name="height"> The height. </param>
|
||||
private void OnCaptureImage(int[] img, int width, int height)
|
||||
{
|
||||
Array.Copy(img, this.bit.Pixels, img.Length);
|
||||
@@ -266,6 +259,9 @@ namespace CampusAppWP8.Pages.Dev
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary> Go to campus-mappage. </summary>
|
||||
/// <remarks> fiedlchr, 15.10.2013. </remarks>
|
||||
/// <param name="tagContent"> The tag content. </param>
|
||||
private void GoToCampusMappage(string tagContent)
|
||||
{
|
||||
string pid = Wp8StringManager.FilterPlaceIdinQRResultString(tagContent);
|
||||
@@ -275,9 +271,8 @@ namespace CampusAppWP8.Pages.Dev
|
||||
NavigationService.Navigate(url);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Capture thread function.
|
||||
/// </summary>
|
||||
/// <summary> Capture thread function. </summary>
|
||||
/// <remarks> fiedlchr, 15.10.2013. </remarks>
|
||||
private void CaptureThreadFunc()
|
||||
{
|
||||
Size resolution = this.cam.PreviewResolution;
|
||||
@@ -285,13 +280,10 @@ namespace CampusAppWP8.Pages.Dev
|
||||
|
||||
while (!this.captureThreadExit)
|
||||
{
|
||||
//if (this.isInAutofocus == false)
|
||||
//{
|
||||
this.cam.GetPreviewBufferArgb32(buffer);
|
||||
|
||||
this.OnCaptureImage(buffer, (int)resolution.Width, (int)resolution.Height);
|
||||
this.isInAutofocus = true;
|
||||
//}
|
||||
|
||||
System.Threading.Thread.Sleep(1000);
|
||||
}
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
// <copyright file="Exams.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="Exams.xaml.cs" company="BTU/IIT">
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>02.09.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the exams.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Exams
|
||||
{
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Navigation;
|
||||
@@ -16,27 +20,26 @@ namespace CampusAppWP8.Pages.Exams
|
||||
using CampusAppWP8.Utility;
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
using Microsoft.Phone.Controls;
|
||||
using System.Threading;
|
||||
using System;
|
||||
|
||||
/// <summary>class of ExamsPage.</summary>
|
||||
/// <remarks>Stubbfel, 02.09.2013.</remarks>
|
||||
/// <summary> class of ExamsPage. </summary>
|
||||
/// <remarks> Stubbfel, 02.09.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class Exams : PhoneApplicationPage
|
||||
{
|
||||
#region Member
|
||||
|
||||
/// <summary>The feed.</summary>
|
||||
/// <summary> The feed. </summary>
|
||||
private ExamFeed feed;
|
||||
|
||||
/// <summary>The exam file.</summary>
|
||||
/// <summary> The exam file. </summary>
|
||||
private ExamFile file;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
/// <summary>Initializes a new instance of the Exams class.</summary>
|
||||
/// <remarks>Stubbfel, 02.09.2013.</remarks>
|
||||
/// <summary> Initializes a new instance of the Exams class. </summary>
|
||||
/// <remarks> Stubbfel, 02.09.2013. </remarks>
|
||||
public Exams()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -52,9 +55,9 @@ namespace CampusAppWP8.Pages.Exams
|
||||
|
||||
#region protected
|
||||
|
||||
/// <summary>Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.</summary>
|
||||
/// <remarks>Stubbfel, 02.09.2013.</remarks>
|
||||
/// <param name="e">Ein Objekt, das die Ereignisdaten enthält.</param>
|
||||
/// <summary> Is called when this page will become the current page of a frame. </summary>
|
||||
/// <remarks> stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
base.OnNavigatedTo(e);
|
||||
@@ -67,14 +70,11 @@ namespace CampusAppWP8.Pages.Exams
|
||||
this.DefHeader.ProgressVisibility = Visibility.Visible;
|
||||
Thread thread = new Thread(new ThreadStart(this.LoadingFeed));
|
||||
thread.Start();
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Wird aufgerufen, wenn eine Seite nicht mehr die aktive Seite in einem Frame ist.
|
||||
/// </summary>
|
||||
/// <remarks>Stubbfel, 02.09.2013.</remarks>
|
||||
/// <param name="e">Ein Objekt, das die Ereignisdaten enthält.</param>
|
||||
/// <summary> Is called when this page will not be the current page of a frame. </summary>
|
||||
/// <remarks> stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatingFrom(System.Windows.Navigation.NavigatingCancelEventArgs)"/>
|
||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||
{
|
||||
if (NavigationMode.Back == e.NavigationMode)
|
||||
@@ -99,9 +99,8 @@ namespace CampusAppWP8.Pages.Exams
|
||||
this.feed.LoadData(Utilities.GetLoadModus<Model.Exams.ExamListWp8Model>());
|
||||
}
|
||||
|
||||
|
||||
/// <summary>Method initialize the Feed.</summary>
|
||||
/// <remarks>Stubbfel, 02.09.2013.</remarks>
|
||||
/// <summary> Method initialize the Feed. </summary>
|
||||
/// <remarks> Stubbfel, 02.09.2013. </remarks>
|
||||
private void InitializeFeed()
|
||||
{
|
||||
this.feed = new ExamFeed();
|
||||
@@ -110,8 +109,8 @@ namespace CampusAppWP8.Pages.Exams
|
||||
this.feed.OnFailedFile += new ExamFeed.OnFailed(this.FeedIsFailFile);
|
||||
}
|
||||
|
||||
/// <summary>Method will be execute if the feed is ready.</summary>
|
||||
/// <remarks>Stubbfel, 02.09.2013.</remarks>
|
||||
/// <summary> Method will be execute if the feed is ready. </summary>
|
||||
/// <remarks> Stubbfel, 02.09.2013. </remarks>
|
||||
private void FeedIsReady()
|
||||
{
|
||||
if (this.Dispatcher != null)
|
||||
@@ -124,16 +123,16 @@ namespace CampusAppWP8.Pages.Exams
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Executes the PDF reader operation.</summary>
|
||||
/// <remarks>Stubbfel, 03.09.2013.</remarks>
|
||||
/// <summary> Executes the PDF reader operation. </summary>
|
||||
/// <remarks> Stubbfel, 03.09.2013. </remarks>
|
||||
private void LaunchPDFReader()
|
||||
{
|
||||
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
|
||||
this.file.SaveAndLaunchFile();
|
||||
}
|
||||
|
||||
/// <summary>Sets up the exam list.</summary>
|
||||
/// <remarks>Stubbfel, 02.09.2013.</remarks>
|
||||
/// <summary> Sets up the exam list. </summary>
|
||||
/// <remarks> Stubbfel, 02.09.2013. </remarks>
|
||||
private void SetupExamList()
|
||||
{
|
||||
var bachelorList = from exam in this.feed.Model.Exams
|
||||
@@ -158,9 +157,9 @@ namespace CampusAppWP8.Pages.Exams
|
||||
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
/// <summary>Calculates the selected index.</summary>
|
||||
/// <remarks>Stubbfel, 02.09.2013.</remarks>
|
||||
/// <returns>The calculated selected index.</returns>
|
||||
/// <summary> Calculates the selected index. </summary>
|
||||
/// <remarks> Stubbfel, 02.09.2013. </remarks>
|
||||
/// <returns> The calculated selected index. </returns>
|
||||
private int CalcSelectedIndex()
|
||||
{
|
||||
int result = App.LoadFromIsolatedStorage<int>(Constants.ExamPageModelKey);
|
||||
@@ -184,12 +183,12 @@ namespace CampusAppWP8.Pages.Exams
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>Method will be execute if the feed is failed.</summary>
|
||||
/// <remarks>Stubbfel, 02.09.2013.</remarks>
|
||||
/// <summary> Method will be execute if the feed is failed. </summary>
|
||||
/// <remarks> Stubbfel, 02.09.2013. </remarks>
|
||||
private void FeedIsFailWeb()
|
||||
{
|
||||
if (this.Dispatcher != null)
|
||||
@@ -200,29 +199,30 @@ namespace CampusAppWP8.Pages.Exams
|
||||
{
|
||||
MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
|
||||
}
|
||||
|
||||
this.feed.ForceReadFile();
|
||||
}
|
||||
|
||||
/// <summary>Method will be execute if the feed is failed.</summary>
|
||||
/// <remarks>Stubbfel, 02.09.2013.</remarks>
|
||||
/// <summary> Method will be execute if the feed is failed. </summary>
|
||||
/// <remarks> Stubbfel, 02.09.2013. </remarks>
|
||||
private void FeedIsFailFile()
|
||||
{
|
||||
if (this.Dispatcher != null)
|
||||
{
|
||||
this.Dispatcher.BeginInvoke(new Action(() => MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile)));
|
||||
this.Dispatcher.BeginInvoke(new Action(() => MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile)));
|
||||
this.Dispatcher.BeginInvoke(new Action(() => this.DefHeader.ProgressVisibility = Visibility.Collapsed));
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
|
||||
MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
|
||||
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Event handler. Called by Button for click events.</summary>
|
||||
/// <remarks>Stubbfel, 03.09.2013.</remarks>
|
||||
/// <param name="sender">Source of the event.</param>
|
||||
/// <param name="e"> Routed event information.</param>
|
||||
/// <summary> Event handler. Called by Button for click events. </summary>
|
||||
/// <remarks> Stubbfel, 03.09.2013. </remarks>
|
||||
/// <param name="sender"> Source of the event. </param>
|
||||
/// <param name="e"> Routed event information. </param>
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Button button = sender as Button;
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="LecturePage.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>13.06.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the lecture page.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Lecture
|
||||
{
|
||||
using System;
|
||||
@@ -18,38 +19,28 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
using CampusAppWPortalLib8.Model.Utility;
|
||||
using Microsoft.Phone.Controls;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Class for the LecturePage
|
||||
/// </summary>
|
||||
/// <summary> Class for the LecturePage. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class LecturePage : PhoneApplicationPage
|
||||
{
|
||||
#region Member
|
||||
|
||||
/// <summary>
|
||||
/// actual LectureAPI
|
||||
/// </summary>
|
||||
/// <summary> actual LectureAPI. </summary>
|
||||
private LectureApi api;
|
||||
|
||||
/// <summary>
|
||||
/// List for the courses of the BTU
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// need to be extend to full list
|
||||
/// </remarks>
|
||||
/// <summary> List for the courses of the BTU. </summary>
|
||||
private LecturePageModel pageModel;
|
||||
|
||||
/// <summary>
|
||||
/// flag for initialed page
|
||||
/// </summary>
|
||||
/// <summary> flag for initialed page. </summary>
|
||||
private bool init;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="LecturePage" /> class.
|
||||
/// </summary>
|
||||
|
||||
/// <summary> Initializes a new instance of the <see cref="LecturePage" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
public LecturePage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -63,10 +54,9 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
|
||||
#region protected
|
||||
|
||||
/// <summary>
|
||||
/// Methods overrides the OnNavigatedFrom-Method
|
||||
/// </summary>
|
||||
/// <param name="e">some NavigationEventArgs</param>
|
||||
/// <summary> Methods overrides the OnNavigatedFrom-Method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedFrom(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||
{
|
||||
if (NavigationMode.Back == e.NavigationMode)
|
||||
@@ -88,9 +78,8 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
|
||||
#region private
|
||||
|
||||
/// <summary>
|
||||
/// Load the PageModel
|
||||
/// </summary>
|
||||
/// <summary> Load the PageModel. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void LoadPageModel()
|
||||
{
|
||||
this.DefHeader.ProgressVisibility = Visibility.Visible;
|
||||
@@ -99,9 +88,8 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
this.pageModel.LoadLists();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method sets the ItemSource of the ListPickers
|
||||
/// </summary>
|
||||
/// <summary> Method sets the ItemSource of the ListPickers. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void SetupListPickers()
|
||||
{
|
||||
this.Course.ItemsSource = this.pageModel.CourseList.List;
|
||||
@@ -122,10 +110,9 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method set the last selected index of the ListPickers
|
||||
/// </summary>
|
||||
/// <param name="lastPageModel">Last PageModel</param>
|
||||
/// <summary> Method set the last selected index of the ListPickers. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="lastPageModel"> Last PageModel. </param>
|
||||
private void SetLastSelectedIndex(LecturePageModel lastPageModel)
|
||||
{
|
||||
this.pageModel.SelectCourseIndex = lastPageModel.SelectCourseIndex;
|
||||
@@ -135,9 +122,8 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
this.pageModel.SelectSemesterIndex = lastPageModel.SelectSemesterIndex;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method set the last selected index of the ListPickers
|
||||
/// </summary>
|
||||
/// <summary> Method set the last selected index of the ListPickers. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void SetSelectedIndex()
|
||||
{
|
||||
this.Course.SelectedIndex = this.pageModel.SelectCourseIndex;
|
||||
@@ -147,9 +133,8 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
this.To.SelectedIndex = this.pageModel.SelectToIndex;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method store the actual selectIndex to the models
|
||||
/// </summary>
|
||||
/// <summary> Method store the actual selectIndex to the models. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void StoreSelectedIndex()
|
||||
{
|
||||
this.pageModel.SelectCourseIndex = this.Course.SelectedIndex;
|
||||
@@ -159,11 +144,10 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
this.pageModel.SelectToIndex = this.To.SelectedIndex;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method send a request to the Feed
|
||||
/// </summary>
|
||||
/// <param name="sender">sender of this event</param>
|
||||
/// <param name="e"> events arguments</param>
|
||||
/// <summary> Method send a request to the Feed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> sender of this event. </param>
|
||||
/// <param name="e"> events arguments. </param>
|
||||
private void SendRequest(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.api = new LectureApi();
|
||||
@@ -176,9 +160,10 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method read the values from the inputs and put them in a list of parameters
|
||||
/// Method read the values from the inputs and put them in a list of parameters.
|
||||
/// </summary>
|
||||
/// <returns>a list of parameters</returns>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <returns> a list of parameters. </returns>
|
||||
private List<UrlParamModel> CreateUrlParameter()
|
||||
{
|
||||
ListPickerItemModel semester = (ListPickerItemModel)this.Semester.SelectedItem;
|
||||
@@ -196,9 +181,8 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
return parameterList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the feed is ready
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the feed is ready. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void ApiIsReady()
|
||||
{
|
||||
string query = this.ActivtyName.Text;
|
||||
@@ -213,11 +197,10 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
NavigationService.Navigate(url);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// EventHandler for changed degree selection
|
||||
/// </summary>
|
||||
/// <param name="sender">sender object</param>
|
||||
/// <param name="e">some args</param>
|
||||
/// <summary> EventHandler for changed degree selection. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> sender object. </param>
|
||||
/// <param name="e"> some args. </param>
|
||||
private void DegreeSelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
|
||||
{
|
||||
if (!this.init)
|
||||
@@ -230,11 +213,10 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
this.From.ItemsSource = this.pageModel.FromNumberList.List;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// EventHandler for changed from selection
|
||||
/// </summary>
|
||||
/// <param name="sender">sender object</param>
|
||||
/// <param name="e">some args</param>
|
||||
/// <summary> EventHandler for changed from selection. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> sender object. </param>
|
||||
/// <param name="e"> some args. </param>
|
||||
private void FromSelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
|
||||
{
|
||||
if (!this.init)
|
||||
@@ -248,9 +230,8 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
this.To.ItemsSource = this.pageModel.ToNumberList.List;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the feed is failed
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the feed is failed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void ApiIsFail()
|
||||
{
|
||||
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoad);
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="ModulWebPage.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>11.06.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the modul web page.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Lecture
|
||||
{
|
||||
using System;
|
||||
@@ -12,16 +13,15 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
using CampusAppWP8.Resources;
|
||||
using Microsoft.Phone.Controls;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the page which shows Webpages from the BaseAddress <see cref="Constants.UrlLecture_ModulBaseAddr" />
|
||||
/// </summary>
|
||||
/// <summary> A modul web page. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class ModulWebPage : PhoneApplicationPage
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ModulWebPage" /> class.
|
||||
/// </summary>
|
||||
/// <summary> Initializes a new instance of the <see cref="ModulWebPage" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
public ModulWebPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -31,10 +31,9 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
|
||||
#region Method
|
||||
|
||||
/// <summary>
|
||||
/// Override the OnNavigatedTo method
|
||||
/// </summary>
|
||||
/// <param name="e">Arguments of navigation</param>
|
||||
/// <summary> Override the OnNavigatedTo method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedTo(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
if (NavigationContext.QueryString.ContainsKey(Constants.ParamModelLecture_ModulNumber))
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="ResultDetailPage.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>11.06.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the result detail page.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Lecture
|
||||
{
|
||||
using System.Windows.Navigation;
|
||||
@@ -12,16 +13,15 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
using CampusAppWP8.Resources;
|
||||
using Microsoft.Phone.Controls;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the page which shows details of an activity
|
||||
/// </summary>
|
||||
/// <summary> Class for the page which shows details of an activity. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class ResultDetailPage : PhoneApplicationPage
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ResultDetailPage" /> class.
|
||||
/// </summary>
|
||||
/// <summary> Initializes a new instance of the <see cref="ResultDetailPage" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
public ResultDetailPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -32,10 +32,10 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
#region Method
|
||||
|
||||
#region protected
|
||||
/// <summary>
|
||||
/// Override the OnNavigatedTo method
|
||||
/// </summary>
|
||||
/// <param name="e">Arguments of navigation</param>
|
||||
|
||||
/// <summary> Override the OnNavigatedTo method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedTo(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
if (NavigationContext.QueryString.ContainsKey(Constants.ParamModelLecture_ActivityId))
|
||||
@@ -51,10 +51,9 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
|
||||
#region private
|
||||
|
||||
/// <summary>
|
||||
/// Method load a certain Activity from the model
|
||||
/// </summary>
|
||||
/// <param name="activityId">id of the activity</param>
|
||||
/// <summary> Method load a certain Activity from the model. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="activityId"> id of the activity. </param>
|
||||
private void LoadActivity(int activityId)
|
||||
{
|
||||
LectureWp8List list = App.LoadFromIsolatedStorage<LectureWp8List>(Constants.IsolatedStorage_LectureModel);
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="ResultPage.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>11.06.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the result page.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Lecture
|
||||
{
|
||||
using System;
|
||||
@@ -16,16 +17,15 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
using Microsoft.Phone.Controls;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the page which shows the results of an LectureRequest
|
||||
/// </summary>
|
||||
/// <summary> Class for the page which shows the results of an LectureRequest. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class ResultPage : PhoneApplicationPage
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ResultPage" /> class.
|
||||
/// </summary>
|
||||
/// <summary> Initializes a new instance of the <see cref="ResultPage" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
public ResultPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -35,10 +35,9 @@ namespace CampusAppWP8.Pages.Lecture
|
||||
|
||||
#region Method
|
||||
|
||||
/// <summary>
|
||||
/// Override the OnNavigatedTo method
|
||||
/// </summary>
|
||||
/// <param name="e">Arguments of navigation</param>
|
||||
/// <summary> Override the OnNavigatedTo method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedTo(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
base.OnNavigatedTo(e);
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="LinkPage.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>02.07.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the link page.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Links
|
||||
{
|
||||
using System;
|
||||
@@ -16,35 +17,28 @@ namespace CampusAppWP8.Pages.Links
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
using Microsoft.Phone.Controls;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the LinkPage
|
||||
/// </summary>
|
||||
/// <summary> Class for the LinkPage. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class LinkPage : PhoneApplicationPage
|
||||
{
|
||||
#region Members
|
||||
|
||||
/// <summary>
|
||||
/// the feed of the CommonLinks
|
||||
/// </summary>
|
||||
/// <summary> the feed of the CommonLinks. </summary>
|
||||
private CommonLinkFeed commonLinkFeed;
|
||||
|
||||
/// <summary>
|
||||
/// the feed of the ClubLinks
|
||||
/// </summary>
|
||||
/// <summary> the feed of the ClubLinks. </summary>
|
||||
private ClubLinkFeed clubLinkFeed;
|
||||
|
||||
/// <summary>
|
||||
/// how many feeds are currently loading
|
||||
/// </summary>
|
||||
/// <summary> how many feeds are currently loading. </summary>
|
||||
private int loadingFeeds;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="LinkPage" /> class.
|
||||
/// </summary>
|
||||
/// <summary> Initializes a new instance of the <see cref="LinkPage" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
public LinkPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -56,10 +50,9 @@ namespace CampusAppWP8.Pages.Links
|
||||
|
||||
#region protected
|
||||
|
||||
/// <summary>
|
||||
/// Override the OnNavigatedTo method
|
||||
/// </summary>
|
||||
/// <param name="e">Arguments of navigation</param>
|
||||
/// <summary> Override the OnNavigatedTo method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedTo(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
base.OnNavigatedTo(e);
|
||||
@@ -77,10 +70,9 @@ namespace CampusAppWP8.Pages.Links
|
||||
this.clubLinkFeed.LoadData(Utilities.GetLoadModus<CampusAppWPortalLib8.Model.Link.LinkListModel>());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Override the OnNavigatedFrom method
|
||||
/// </summary>
|
||||
/// <param name="e">Arguments of navigation</param>
|
||||
/// <summary> Override the OnNavigatedFrom method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedFrom(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||
{
|
||||
this.clubLinkFeed.SaveData();
|
||||
@@ -90,9 +82,8 @@ namespace CampusAppWP8.Pages.Links
|
||||
#endregion
|
||||
#region private
|
||||
|
||||
/// <summary>
|
||||
/// Method initialize the Feeds
|
||||
/// </summary>
|
||||
/// <summary> Method initialize the Feeds. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void InitializeFeeds()
|
||||
{
|
||||
if (this.commonLinkFeed == null)
|
||||
@@ -106,9 +97,8 @@ namespace CampusAppWP8.Pages.Links
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method initialize the CommonLinkFeed
|
||||
/// </summary>
|
||||
/// <summary> Method initialize the CommonLinkFeed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void InitializeCommonLinkFeed()
|
||||
{
|
||||
this.commonLinkFeed = new CommonLinkFeed();
|
||||
@@ -117,9 +107,8 @@ namespace CampusAppWP8.Pages.Links
|
||||
this.commonLinkFeed.OnFailedFile += new CommonLinkFeed.OnFailed(this.FeedIsFailFile);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method initialize the ClubLinkFeed
|
||||
/// </summary>
|
||||
/// <summary> Method initialize the ClubLinkFeed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void InitializeClubLinkFeed()
|
||||
{
|
||||
this.clubLinkFeed = new ClubLinkFeed();
|
||||
@@ -128,46 +117,42 @@ namespace CampusAppWP8.Pages.Links
|
||||
this.clubLinkFeed.OnFailedFile += new ClubLinkFeed.OnFailed(this.FeedIsFailFile);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the CommonLinkFeed is ready
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the CommonLinkFeed is ready. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void CommonLinkFeedIsReady()
|
||||
{
|
||||
this.SetupCommonPivot();
|
||||
this.SetupProgressBarVisibilityCollapsed();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the ClubLinkFeed is ready
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the ClubLinkFeed is ready. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void ClubLinkFeedIsReady()
|
||||
{
|
||||
this.SetupClubPivot();
|
||||
this.SetupProgressBarVisibilityCollapsed();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method set ItemSource for the CommonLinkPanel
|
||||
/// </summary>
|
||||
/// <summary> Method set ItemSource for the CommonLinkPanel. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void SetupCommonPivot()
|
||||
{
|
||||
this.CommonLinkPanel.ItemsSource = this.commonLinkFeed.Model.Links;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method set ItemSource for the ClubLinkPanel
|
||||
/// </summary>
|
||||
/// <summary> Method set ItemSource for the ClubLinkPanel. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void SetupClubPivot()
|
||||
{
|
||||
this.ClubLinkPanel.ItemsSource = this.clubLinkFeed.Model.Links;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// On clicking the update button in the ApplicationBar.
|
||||
/// Force a data update from the web.
|
||||
/// On clicking the update button in the ApplicationBar. Force a data update from the web.
|
||||
/// </summary>
|
||||
/// <param name="sender">button object</param>
|
||||
/// <param name="e">event args</param>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> button object. </param>
|
||||
/// <param name="e"> event args. </param>
|
||||
private void LinkForceUpdate_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.loadingFeeds = 2;
|
||||
@@ -177,27 +162,24 @@ namespace CampusAppWP8.Pages.Links
|
||||
this.clubLinkFeed.ForceWebUpdate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the feed is failed
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the feed is failed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void ClubLinkFeedIsFailWeb()
|
||||
{
|
||||
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
|
||||
this.clubLinkFeed.ForceReadFile();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the feed is failed
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the feed is failed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void CommonLinkFeedIsFailWeb()
|
||||
{
|
||||
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
|
||||
this.commonLinkFeed.ForceReadFile();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the feed is failed
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the feed is failed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void FeedIsFailFile()
|
||||
{
|
||||
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
|
||||
@@ -205,8 +187,9 @@ namespace CampusAppWP8.Pages.Links
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method set the visibility of the ProgressBar to Collapsed if loadingFeeds less then 1
|
||||
/// Method set the visibility of the ProgressBar to Collapsed if loadingFeeds less then 1.
|
||||
/// </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void SetupProgressBarVisibilityCollapsed()
|
||||
{
|
||||
this.loadingFeeds--;
|
||||
@@ -216,11 +199,10 @@ namespace CampusAppWP8.Pages.Links
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method handle OrientationPage
|
||||
/// </summary>
|
||||
/// <param name="sender">Caller of the function</param>
|
||||
/// <param name="e">some EventArgs</param>
|
||||
/// <summary> Method handle OrientationPage. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Caller of the function. </param>
|
||||
/// <param name="e"> some EventArgs. </param>
|
||||
private void PhoneApplicationPage_OrientationChanged(object sender, OrientationChangedEventArgs e)
|
||||
{
|
||||
if (this.Orientation == PageOrientation.LandscapeLeft || this.Orientation == PageOrientation.LandscapeRight)
|
||||
|
||||
@@ -1,51 +1,43 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="MensaPage.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>04.05.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the mensa page.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Mensa
|
||||
{
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using System.Windows.Navigation;
|
||||
using CampusAppWP8.Api.GeoApi;
|
||||
using CampusAppWP8.Feed.Mensa;
|
||||
using CampusAppWP8.Resources;
|
||||
using CampusAppWP8.Utility;
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
using CampusAppWPortalLib8.Model.Mensa;
|
||||
using CampusAppWPortalLib8.Model.Settings;
|
||||
using Microsoft.Phone.Controls;
|
||||
using Microsoft.Phone.Shell;
|
||||
using CampusAppWPortalLib8.Model.Settings;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the MensaPage
|
||||
/// </summary>
|
||||
/// <summary> Class for the MensaPage. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class MensaPage : PhoneApplicationPage
|
||||
{
|
||||
#region Members
|
||||
|
||||
/// <summary>
|
||||
/// the feed of the mensa
|
||||
/// </summary>
|
||||
/// <summary> the feed of the mensa. </summary>
|
||||
private MensaFeed feed;
|
||||
|
||||
/// <summary>
|
||||
/// Index representing the weekday of today
|
||||
/// 0 - Monday(Default)
|
||||
/// 1 - Tuesday
|
||||
/// 2 - Wednesday
|
||||
/// 3 - Thursday
|
||||
/// 4 - Friday
|
||||
/// Index representing the weekday of today 0 - Monday(Default)
|
||||
/// 1 - Tuesday 2 - Wednesday 3 - Thursday 4 - Friday.
|
||||
/// </summary>
|
||||
private int selectedIndex;
|
||||
|
||||
/// <summary>
|
||||
/// Flag indicate that the feed was refreshed
|
||||
/// </summary>
|
||||
/// <summary> Flag indicate that the feed was refreshed. </summary>
|
||||
private bool refreshed = false;
|
||||
|
||||
/// <summary>
|
||||
@@ -53,18 +45,15 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
/// </summary>
|
||||
// private CampusSpsApi campusApi;
|
||||
|
||||
/// <summary>
|
||||
/// Flag for forcing webLoad
|
||||
/// </summary>
|
||||
/// <summary> Flag for forcing webLoad. </summary>
|
||||
private bool forceLoad = false;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MensaPage" /> class.
|
||||
/// </summary>
|
||||
/// <summary> Initializes a new instance of the <see cref="MensaPage" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
public MensaPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -96,10 +85,9 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
|
||||
#region protected
|
||||
|
||||
/// <summary>
|
||||
/// Override the OnNavigatedTo method
|
||||
/// </summary>
|
||||
/// <param name="e">Arguments of navigation</param>
|
||||
/// <summary> Override the OnNavigatedTo method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedTo(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
base.OnNavigatedTo(e);
|
||||
@@ -108,13 +96,13 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
{
|
||||
ApplicationBar.Mode = Microsoft.Phone.Shell.ApplicationBarMode.Default;
|
||||
}
|
||||
|
||||
this.InitializeFeed();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Override the OnNavigatedFrom method
|
||||
/// </summary>
|
||||
/// <param name="e">Arguments of navigation</param>
|
||||
/// <summary> Override the OnNavigatedFrom method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedFrom(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||
{
|
||||
if (this.feed != null)
|
||||
@@ -154,9 +142,8 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
}
|
||||
}*/
|
||||
|
||||
/// <summary>
|
||||
/// Method determine campus and load data from correct feed
|
||||
/// </summary>
|
||||
/// <summary> Method determine campus and load data from correct feed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void DeterminCurrentCampusAndLoadFeed()
|
||||
{
|
||||
Campus mensaCampus = Utilities.DetermineCampus();
|
||||
@@ -171,7 +158,6 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
{
|
||||
this.Dispatcher.BeginInvoke(new Action(() => this.InitializeFeed(mensaCampus)));
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -192,10 +178,9 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
this.campusApi.LoadData();*/
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method initialize the Feed depends of a campus
|
||||
/// </summary>
|
||||
/// <param name="campus">campus parameter</param>
|
||||
/// <summary> Method initialize the Feed depends of a campus. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="campus"> campus parameter. </param>
|
||||
private void InitializeFeed(CampusAppWPortalLib8.Model.Settings.Campus campus)
|
||||
{
|
||||
this.feed = MensaFeed.CreateCampusMensaFeed(campus);
|
||||
@@ -215,9 +200,8 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method initialize the Feed
|
||||
/// </summary>
|
||||
/// <summary> Method initialize the Feed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void InitializeFeed()
|
||||
{
|
||||
if (Settings.AppSetting.GeoWatchEnable)
|
||||
@@ -231,36 +215,32 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the feed is ready
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the feed is ready. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void FeedIsReady()
|
||||
{
|
||||
this.SetupMensaPivot();
|
||||
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the feed is failed
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the feed is failed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void FeedIsFailWeb()
|
||||
{
|
||||
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
|
||||
this.feed.ForceReadFile();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the feed is failed
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the feed is failed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void FeedIsFailFile()
|
||||
{
|
||||
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
|
||||
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method set ItemSource and SelectedIndex for the pivot
|
||||
/// </summary>
|
||||
/// <summary> Method set ItemSource and SelectedIndex for the pivot. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void SetupMensaPivot()
|
||||
{
|
||||
this.DefHeader.HeaderName = AppResources.MensaApp_Title + ": " + this.feed.Title;
|
||||
@@ -270,9 +250,8 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
this.MensaPivot.SelectedIndex = this.selectedIndex;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method create the IconsUrl for the meals
|
||||
/// </summary>
|
||||
/// <summary> Method create the IconsUrl for the meals. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void CreatesMealIcons()
|
||||
{
|
||||
foreach (MenuModel menus in this.feed.Model.Menus)
|
||||
@@ -316,9 +295,8 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method calculate which pivot has to be selected
|
||||
/// </summary>
|
||||
/// <summary> Method calculate which pivot has to be selected. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void CalcSelectedIndex()
|
||||
{
|
||||
DayOfWeek today = DateTime.Now.DayOfWeek;
|
||||
@@ -349,11 +327,11 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// On clicking the update button in the ApplicationBar.
|
||||
/// Force a data update from the web.
|
||||
/// On clicking the update button in the ApplicationBar. Force a data update from the web.
|
||||
/// </summary>
|
||||
/// <param name="sender">button object</param>
|
||||
/// <param name="e">event args</param>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> button object. </param>
|
||||
/// <param name="e"> event args. </param>
|
||||
private void MensaForceUpdate_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DefHeader.ProgressVisibility = Visibility.Visible;
|
||||
@@ -362,41 +340,40 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
this.refreshed = true;
|
||||
}
|
||||
|
||||
/// <summary>Event handler. Called by ApplicationBarMenuItem for click events.</summary>
|
||||
/// <remarks>Stubbfel, 26.08.2013.</remarks>
|
||||
/// <param name="sender">button object.</param>
|
||||
/// <param name="e"> Event information.</param>
|
||||
/// <summary> Event handler. Called by ApplicationBarMenuItem for click events. </summary>
|
||||
/// <remarks> Stubbfel, 26.08.2013. </remarks>
|
||||
/// <param name="sender"> button object. </param>
|
||||
/// <param name="e"> Event information. </param>
|
||||
private void ApplicationBarMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DefHeader.ProgressVisibility = Visibility.Visible;
|
||||
this.InitializeFeed(CampusAppWPortalLib8.Model.Settings.Campus.CB_MAIN);
|
||||
}
|
||||
|
||||
/// <summary>Event handler. Called by ApplicationBarMenuItem2 for click events.</summary>
|
||||
/// <remarks>Stubbfel, 26.08.2013.</remarks>
|
||||
/// <param name="sender">button object.</param>
|
||||
/// <param name="e"> Event information.</param>
|
||||
/// <summary> Event handler. Called by ApplicationBarMenuItem2 for click events. </summary>
|
||||
/// <remarks> Stubbfel, 26.08.2013. </remarks>
|
||||
/// <param name="sender"> button object. </param>
|
||||
/// <param name="e"> Event information. </param>
|
||||
private void ApplicationBarMenuItem2_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DefHeader.ProgressVisibility = Visibility.Visible;
|
||||
this.InitializeFeed(CampusAppWPortalLib8.Model.Settings.Campus.CB_SOUTH);
|
||||
}
|
||||
|
||||
/// <summary>Event handler. Called by ApplicationBarMenuItem3 for click events.</summary>
|
||||
/// <remarks>Stubbfel, 26.08.2013.</remarks>
|
||||
/// <param name="sender">button object.</param>
|
||||
/// <param name="e"> Event information.</param>
|
||||
/// <summary> Event handler. Called by ApplicationBarMenuItem3 for click events. </summary>
|
||||
/// <remarks> Stubbfel, 26.08.2013. </remarks>
|
||||
/// <param name="sender"> button object. </param>
|
||||
/// <param name="e"> Event information. </param>
|
||||
private void ApplicationBarMenuItem3_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DefHeader.ProgressVisibility = Visibility.Visible;
|
||||
this.InitializeFeed(CampusAppWPortalLib8.Model.Settings.Campus.SFB_MAIN);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method handle OrientationPage
|
||||
/// </summary>
|
||||
/// <param name="sender">Caller of the function</param>
|
||||
/// <param name="e">some EventArgs</param>
|
||||
/// <summary> Method handle OrientationPage. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Caller of the function. </param>
|
||||
/// <param name="e"> some EventArgs. </param>
|
||||
private void PhoneApplicationPage_OrientationChanged(object sender, OrientationChangedEventArgs e)
|
||||
{
|
||||
if (this.Orientation == PageOrientation.LandscapeLeft || this.Orientation == PageOrientation.LandscapeRight)
|
||||
@@ -418,8 +395,9 @@ namespace CampusAppWP8.Pages.Mensa
|
||||
FrameworkElement frameelement = sender as FrameworkElement;
|
||||
if (frameelement == null)
|
||||
{
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
string copyText = frameelement.Tag.ToString() + " (" + AppResources.Setting_UserCampus + " " + this.feed.Title + ")";
|
||||
Clipboard.SetText(copyText);
|
||||
}
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="PersonPage.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>09.09.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the person page.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Person
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using CampusAppWP8.Api.Person;
|
||||
using CampusAppWP8.Model.Person;
|
||||
@@ -18,24 +20,23 @@ namespace CampusAppWP8.Pages.Person
|
||||
using CampusAppWPortalLib8.Model.Utility;
|
||||
using Microsoft.Phone.Controls;
|
||||
using Microsoft.Phone.Tasks;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Controls;
|
||||
|
||||
/// <summary>Person page.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Person page. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class PersonPage : PhoneApplicationPage
|
||||
{
|
||||
#region Member
|
||||
|
||||
/// <summary>The API.</summary>
|
||||
/// <summary> The API. </summary>
|
||||
private PersonSearchApi api;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
/// <summary>Initializes a new instance of the PersonPage class.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Initializes a new instance of the PersonPage class. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
public PersonPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -45,10 +46,10 @@ namespace CampusAppWP8.Pages.Person
|
||||
|
||||
#region Method
|
||||
|
||||
/// <summary>Sends a request.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <param name="sender">Source of the event.</param>
|
||||
/// <param name="e"> Routed event information.</param>
|
||||
/// <summary> Sends a request. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
/// <param name="sender"> Source of the event. </param>
|
||||
/// <param name="e"> Routed event information. </param>
|
||||
private void SendRequest(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string query = this.SearchName.Text.Trim();
|
||||
@@ -66,10 +67,10 @@ namespace CampusAppWP8.Pages.Person
|
||||
this.api.LoadData();
|
||||
}
|
||||
|
||||
/// <summary>Creates URL parameter.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <param name="name">The name.</param>
|
||||
/// <returns>The new URL parameter.</returns>
|
||||
/// <summary> Creates URL parameter. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
/// <param name="name"> The name. </param>
|
||||
/// <returns> The new URL parameter. </returns>
|
||||
private List<UrlParamModel> CreateUrlParameter(string name)
|
||||
{
|
||||
List<UrlParamModel> parameterList = new List<UrlParamModel>();
|
||||
@@ -77,24 +78,24 @@ namespace CampusAppWP8.Pages.Person
|
||||
return parameterList;
|
||||
}
|
||||
|
||||
/// <summary>API is fail.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> API is fail. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
private void ApiIsFail()
|
||||
{
|
||||
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoad);
|
||||
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
/// <summary>API is ready.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> API is ready. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
private void ApiIsReady()
|
||||
{
|
||||
this.SetupResultBox();
|
||||
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
/// <summary>Sets up the result box.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Sets up the result box. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
private void SetupResultBox()
|
||||
{
|
||||
this.api.Model.RemoveNonFunctionAndSetIdsPerson();
|
||||
@@ -105,10 +106,10 @@ namespace CampusAppWP8.Pages.Person
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Event handler. Called by Button for click events.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <param name="sender">Source of the event.</param>
|
||||
/// <param name="e"> Routed event information.</param>
|
||||
/// <summary> Event handler. Called by Button for click events. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
/// <param name="sender"> Source of the event. </param>
|
||||
/// <param name="e"> Routed event information. </param>
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
AddPersonButton btn = sender as AddPersonButton;
|
||||
@@ -144,20 +145,23 @@ namespace CampusAppWP8.Pages.Person
|
||||
saveContactTask.Show();
|
||||
}
|
||||
|
||||
/// <summary> Event handler. Called by SearchName for key down events. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Source of the event. </param>
|
||||
/// <param name="e"> Key event information. </param>
|
||||
private void SearchName_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
|
||||
{
|
||||
if (e.Key == Key.Enter)
|
||||
{
|
||||
this.SendRequest(sender,e);
|
||||
this.SendRequest(sender, e);
|
||||
this.ResultBox.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method is called when the selection in the listbox is changed.
|
||||
/// </summary>
|
||||
/// <param name="sender">listbox object.</param>
|
||||
/// <param name="e">event args.</param>
|
||||
/// <summary> Method is called when the selection in the ListBox is changed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> ListBox object. </param>
|
||||
/// <param name="e"> event args. </param>
|
||||
private void Box_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
|
||||
{
|
||||
(sender as ListBox).SelectedIndex = -1;
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="PlaceNews.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>09.09.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the place news.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.PlaceNews
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
@@ -21,49 +22,50 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
using CampusAppWP8.Resources;
|
||||
using CampusAppWP8.Utility;
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
using CampusAppWP8.Utility.NDEF;
|
||||
using Microsoft.Phone.Controls;
|
||||
using Windows.Networking.Proximity;
|
||||
using CampusAppWP8.Utility.NDEF;
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using Microsoft.Phone.Shell;
|
||||
|
||||
/// <summary>Place news.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Place news. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class PlaceNews : PhoneApplicationPage
|
||||
{
|
||||
#region Member
|
||||
/// <summary>The sps API.</summary>
|
||||
|
||||
/// <summary> The device. </summary>
|
||||
private readonly ProximityDevice device = ProximityDevice.GetDefault();
|
||||
|
||||
/// <summary> The sps API. </summary>
|
||||
private SpsApi spsApi;
|
||||
|
||||
/// <summary>The pis API.</summary>
|
||||
/// <summary> The pis API. </summary>
|
||||
private PisApi pisApi;
|
||||
|
||||
/// <summary>The pss API.</summary>
|
||||
/// <summary> The pss API. </summary>
|
||||
private PssApi pssApi;
|
||||
|
||||
/// <summary>The places.</summary>
|
||||
/// <summary> The places. </summary>
|
||||
private PlacesFile places;
|
||||
|
||||
/// <summary>variable indicates how many apis are running.</summary>
|
||||
/// <summary> variable indicates how many apis are running. </summary>
|
||||
private int waitForApi;
|
||||
|
||||
/// <summary>true to force request.</summary>
|
||||
/// <summary> true to force request. </summary>
|
||||
private bool forceRequest;
|
||||
|
||||
/// <summary>List of search pids.</summary>
|
||||
/// <summary> List of search pids. </summary>
|
||||
private List<string> searchPidList;
|
||||
|
||||
/// <summary> true to qr scan. </summary>
|
||||
private bool qrScan = false;
|
||||
|
||||
/// <summary>The device.</summary>
|
||||
private readonly ProximityDevice device = ProximityDevice.GetDefault();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
/// <summary>Initializes a new instance of the PlaceNews class.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Initializes a new instance of the PlaceNews class. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
public PlaceNews()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -76,9 +78,9 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
|
||||
#region protected
|
||||
|
||||
/// <summary>Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <param name="e">Ein Objekt, das die Ereignisdaten enthält.</param>
|
||||
/// <summary> Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedTo(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
base.OnNavigatedTo(e);
|
||||
@@ -91,9 +93,9 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
this.places.Model = App.LoadFromIsolatedStorage<SpsModel>(Constants.IsolatedStorage_AllPlaces);
|
||||
}
|
||||
|
||||
if (qrScan)
|
||||
if (this.qrScan)
|
||||
{
|
||||
qrScan = false;
|
||||
this.qrScan = false;
|
||||
string qrResult = App.LoadFromIsolatedStorage<string>("PlaceNewsQCCode");
|
||||
App.SaveToIsolatedStorage<string>("PlaceNewsQCCode", null);
|
||||
|
||||
@@ -108,7 +110,6 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
{
|
||||
this.SetupResultBox();
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -124,8 +125,8 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
/// <summary>
|
||||
/// Wird aufgerufen, wenn eine Seite nicht mehr die aktive Seite in einem Frame ist.
|
||||
/// </summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <param name="e">Ein Objekt, das die Ereignisdaten enthält.</param>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedFrom(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||
{
|
||||
if (NavigationMode.Back == e.NavigationMode)
|
||||
@@ -138,8 +139,8 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
|
||||
#region private
|
||||
|
||||
/// <summary>Initializes the API.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Initializes the API. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
private void InitializeApi()
|
||||
{
|
||||
// init place file
|
||||
@@ -158,7 +159,6 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
this.spsApi.OnLoaded += new SpsApi.OnIO(this.SpsApiIsReady);
|
||||
this.spsApi.OnFailedLoad += new SpsApi.OnFailed(this.ApiIsFail);
|
||||
this.spsApi.SetupCurrentPlaceRequest(Constants.SpsDomain_Buildings);
|
||||
|
||||
}
|
||||
|
||||
if (this.forceRequest)
|
||||
@@ -195,8 +195,8 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Places file is fail.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Places file is fail. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
private void PlacesFileIsFail()
|
||||
{
|
||||
this.places.Model = new SpsModel();
|
||||
@@ -212,8 +212,8 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
this.waitForApi++;
|
||||
}
|
||||
|
||||
/// <summary>Places file is ready.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Places file is ready. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
private void PlacesFileIsReady()
|
||||
{
|
||||
if (this.spsApi == null)
|
||||
@@ -228,8 +228,8 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
this.waitForApi++;
|
||||
}
|
||||
|
||||
/// <summary>Pss API is ready.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Pss API is ready. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
private void PssApiIsReady()
|
||||
{
|
||||
this.waitForApi--;
|
||||
@@ -238,8 +238,8 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
this.CheckedSetupResultBox();
|
||||
}
|
||||
|
||||
/// <summary>Pis API is ready.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Pis API is ready. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
private void PisApiIsReady()
|
||||
{
|
||||
this.waitForApi--;
|
||||
@@ -248,8 +248,8 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
this.CheckedSetupResultBox();
|
||||
}
|
||||
|
||||
/// <summary>API is fail.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> API is fail. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
private void ApiIsFail()
|
||||
{
|
||||
if (this.Dispatcher != null)
|
||||
@@ -259,25 +259,26 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Sps API is ready.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Sps API is ready. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
private void SpsApiIsReady()
|
||||
{
|
||||
this.waitForApi--;
|
||||
if (spsApi.Model.Places.Count > 0)
|
||||
if (this.spsApi.Model.Places.Count > 0)
|
||||
{
|
||||
this.places.Model.AddPlaces(this.spsApi.Model.Places.ToList());
|
||||
this.searchPidList = this.spsApi.Model.CreatePidList();
|
||||
this.SendGetPisPssForPlacenews(this.searchPidList);
|
||||
}
|
||||
|
||||
this.CheckedSetupResultBox();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// send get request to pis andd pss for PlaceNews service
|
||||
/// </summary>
|
||||
/// <param name="pidList">list of place id</param>
|
||||
private void SendGetPisPssForPlacenews(List<string> pidList) {
|
||||
|
||||
/// <summary> send get request to pis and pss for PlaceNews service. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="pidList"> list of place id. </param>
|
||||
private void SendGetPisPssForPlacenews(List<string> pidList)
|
||||
{
|
||||
List<string> infoNames = new List<string>() { Constants.PisInformationName_Name };
|
||||
List<string> serviceNames = new List<string>() { Constants.PssServiceName_PlaceNews };
|
||||
|
||||
@@ -288,14 +289,13 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
this.SendGetPlaceService(this.searchPidList, serviceNames);
|
||||
|
||||
this.CheckedSetupResultBox();
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// Method send get for PlaceInformation of certain places
|
||||
/// </summary>
|
||||
/// <param name="pidList">list of place id</param>
|
||||
/// <param name="infoNames">list of informations name</param>
|
||||
/// <param name="force">if its true then force api load</param>
|
||||
|
||||
/// <summary> Method send get for PlaceInformation of certain places. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="pidList"> list of place id. </param>
|
||||
/// <param name="infoNames"> list of information names. </param>
|
||||
/// <param name="force"> (Optional) if its true then force api load. </param>
|
||||
private void SendGetPlaceInformation(List<string> pidList, List<string> infoNames, bool force = false)
|
||||
{
|
||||
if (force || !this.places.Model.ContainsInformationNames(pidList, infoNames))
|
||||
@@ -306,12 +306,11 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method send get for PlaceSetvice of certain places
|
||||
/// </summary>
|
||||
/// <param name="pidList">list of place id</param>
|
||||
/// <param name="serviceNames">list of service name</param>
|
||||
/// <param name="force">if its true then force api load</param>
|
||||
/// <summary> Method send get for PlaceService of certain places. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="pidList"> list of place id. </param>
|
||||
/// <param name="serviceNames"> list of service name. </param>
|
||||
/// <param name="force"> (Optional) if its true then force api load. </param>
|
||||
private void SendGetPlaceService(List<string> pidList, List<string> serviceNames, bool force = false)
|
||||
{
|
||||
if (this.forceRequest || !this.places.Model.ContainsServiceNames(pidList, serviceNames))
|
||||
@@ -322,8 +321,8 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Sets up the result box.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Sets up the result box. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
private void SetupResultBox()
|
||||
{
|
||||
this.ResultBox.ItemsSource = this.places.Model.FilterByPid(this.searchPidList);
|
||||
@@ -333,10 +332,10 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
this.forceRequest = false;
|
||||
}
|
||||
|
||||
/// <summary>Event handler. Called by UpdateButtonAppBar for click events.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <param name="sender">Source of the event.</param>
|
||||
/// <param name="e"> Event information.</param>
|
||||
/// <summary> Event handler. Called by UpdateButtonAppBar for click events. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
/// <param name="sender"> Source of the event. </param>
|
||||
/// <param name="e"> Event information. </param>
|
||||
private void UpdateButtonAppBar_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.ProgressBar.Visibility = Visibility.Visible;
|
||||
@@ -344,8 +343,8 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
thread.Start();
|
||||
}
|
||||
|
||||
/// <summary>Initialises the API current position force.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Initialises the API current position force. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
private void InitApiCurrentPositionForce()
|
||||
{
|
||||
Utilities.DetermineAndStoreCurrentPositionForce();
|
||||
@@ -353,10 +352,10 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
this.InitializeApi();
|
||||
}
|
||||
|
||||
/// <summary>Event handler. Called by ApplicationBarMenuItem for click events.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <param name="sender">Source of the event.</param>
|
||||
/// <param name="e"> Event information.</param>
|
||||
/// <summary> Event handler. Called by ApplicationBarMenuItem for click events. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
/// <param name="sender"> Source of the event. </param>
|
||||
/// <param name="e"> Event information. </param>
|
||||
private void ApplicationBarMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.qrScan = true;
|
||||
@@ -366,18 +365,18 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
this.NavigationService.Navigate(url);
|
||||
}
|
||||
|
||||
/// <summary>Event handler. Called by ApplicationBarMenuItem_Click for 1 events.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <param name="sender">Source of the event.</param>
|
||||
/// <param name="e"> Event information.</param>
|
||||
/// <summary> Event handler. Called by ApplicationBarMenuItem_Click for 1 events. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
/// <param name="sender"> Source of the event. </param>
|
||||
/// <param name="e"> Event information. </param>
|
||||
private void ApplicationBarMenuItem_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
this.ProgressBar.Visibility = Visibility.Visible;
|
||||
this.device.SubscribeForMessage("NDEF", this.NDEFHandler);
|
||||
}
|
||||
|
||||
/// <summary>Checked setup result box.</summary>
|
||||
/// <remarks>Stubbfel, 10.09.2013.</remarks>
|
||||
/// <summary> Checked setup result box. </summary>
|
||||
/// <remarks> Stubbfel, 10.09.2013. </remarks>
|
||||
private void CheckedSetupResultBox()
|
||||
{
|
||||
if (this.waitForApi < 1)
|
||||
@@ -395,11 +394,10 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Method set correct text of the TextBlock
|
||||
/// </summary>
|
||||
/// <param name="sender">sender of the event</param>
|
||||
/// <param name="e">some args</param>
|
||||
/// <summary> Method set correct text of the TextBlock. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> sender of the event. </param>
|
||||
/// <param name="e"> some args. </param>
|
||||
private void TextBlock_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
TextBlock txt = sender as TextBlock;
|
||||
@@ -418,10 +416,10 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
txt.Text = place.GetInformationsValue(Constants.PisInformationName_Name);
|
||||
}
|
||||
|
||||
/// <summary>Handler, called when the ndef.</summary>
|
||||
/// <remarks>Stubbfel, 22.08.2013.</remarks>
|
||||
/// <param name="sender"> The sender.</param>
|
||||
/// <param name="message">The message.</param>
|
||||
/// <summary> Handler, called when the ndef. </summary>
|
||||
/// <remarks> Stubbfel, 22.08.2013. </remarks>
|
||||
/// <param name="sender"> The sender. </param>
|
||||
/// <param name="message"> The message. </param>
|
||||
private void NDEFHandler(ProximityDevice sender, ProximityMessage message)
|
||||
{
|
||||
this.device.StopSubscribingForMessage(message.SubscriptionId);
|
||||
@@ -436,6 +434,7 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
this.searchPidList = new List<string>() { pid };
|
||||
this.SendGetPisPssForPlacenews(this.searchPidList);
|
||||
}
|
||||
|
||||
// this.Dispatcher.BeginInvoke(new Action(() => MessageBox.Show(ndef.GetContent())));
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="ShowPad.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>09.09.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the show pad.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.PlaceNews
|
||||
{
|
||||
using System;
|
||||
@@ -14,14 +14,15 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
using CampusAppWP8.Resources;
|
||||
using Microsoft.Phone.Controls;
|
||||
|
||||
/// <summary>Show pad.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Show pad. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class ShowPad : PhoneApplicationPage
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
/// <summary>Initializes a new instance of the ShowPad class.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <summary> Initializes a new instance of the ShowPad class. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
public ShowPad()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -31,9 +32,9 @@ namespace CampusAppWP8.Pages.PlaceNews
|
||||
|
||||
#region Method
|
||||
|
||||
/// <summary>Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.</summary>
|
||||
/// <remarks>Stubbfel, 09.09.2013.</remarks>
|
||||
/// <param name="e">Ein Objekt, das die Ereignisdaten enthält.</param>
|
||||
/// <summary> Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird. </summary>
|
||||
/// <remarks> Stubbfel, 09.09.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedTo(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
if (NavigationContext.QueryString.ContainsKey(Constants.ParamPlaceID))
|
||||
|
||||
@@ -1,30 +1,31 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="AppSettingPage.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>12.08.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the application setting page.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Setting
|
||||
{
|
||||
using System.Windows.Navigation;
|
||||
using Microsoft.Phone.Controls;
|
||||
using System;
|
||||
using System.Windows.Navigation;
|
||||
using CampusApp8.Model.Setting;
|
||||
using System;
|
||||
using Microsoft.Phone.Controls;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the AppSettingPage
|
||||
/// </summary>
|
||||
/// <summary> Class for the AppSettingPage. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class AppSettingPage : PhoneApplicationPage
|
||||
{
|
||||
#region Member
|
||||
/// <summary> The TagHandler model. </summary>
|
||||
private TagHandlerListPickerItemListModel taghandlerModel;
|
||||
#endregion
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AppSettingPage" /> class.
|
||||
/// </summary>
|
||||
/// <summary> Initializes a new instance of the <see cref="AppSettingPage" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
public AppSettingPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -40,10 +41,9 @@ namespace CampusAppWP8.Pages.Setting
|
||||
|
||||
#region Method
|
||||
|
||||
/// <summary>
|
||||
/// Override the OnNavigatedFrom method
|
||||
/// </summary>
|
||||
/// <param name="e">Arguments of navigation</param>
|
||||
/// <summary> Override the OnNavigatedFrom method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedFrom(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||
{
|
||||
if (NavigationMode.Back == e.NavigationMode)
|
||||
|
||||
@@ -1,17 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Navigation;
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="Impressum.xaml.cs" company="BTU/IIT">
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the impressum.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
using Microsoft.Phone.Controls;
|
||||
using Microsoft.Phone.Shell;
|
||||
|
||||
namespace CampusAppWP8.Pages.Setting
|
||||
{
|
||||
/// <summary> An impressum. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class Impressum : PhoneApplicationPage
|
||||
{
|
||||
/// <summary> Initializes a new instance of the Impressum class. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
public Impressum()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="UserProfil.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>23.07.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the user profil.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Setting
|
||||
{
|
||||
using System;
|
||||
@@ -12,32 +13,29 @@ namespace CampusAppWP8.Pages.Setting
|
||||
using System.Windows.Navigation;
|
||||
using CampusAppWP8.Model.Setting;
|
||||
using CampusAppWP8.Model.Utility;
|
||||
using CampusAppWPortalLib8.Model.Utility;
|
||||
using CampusAppWPortalLib8.Utility;
|
||||
using Microsoft.Phone.Controls;
|
||||
using CampusAppWPortalLib8.Model.Utility;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the UserProfilePage
|
||||
/// </summary>
|
||||
/// <summary> Class for the UserProfilePage. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class UserProfil : PhoneApplicationPage
|
||||
{
|
||||
#region Member
|
||||
|
||||
/// <summary>
|
||||
/// Reference of the profileFile
|
||||
/// </summary>
|
||||
/// <summary> Reference of the profileFile. </summary>
|
||||
private UserProfilModel userProfil;
|
||||
|
||||
/// <summary>List of courses.</summary>
|
||||
/// <summary> List of courses. </summary>
|
||||
private CourseListPickerItemListWp8Model courseList;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserProfil" /> class.
|
||||
/// </summary>
|
||||
/// <summary> Initializes a new instance of the <see cref="UserProfil" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
public UserProfil()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -51,10 +49,9 @@ namespace CampusAppWP8.Pages.Setting
|
||||
|
||||
#region protected
|
||||
|
||||
/// <summary>
|
||||
/// Override the OnNavigatedFrom method
|
||||
/// </summary>
|
||||
/// <param name="e">Arguments of navigation</param>
|
||||
/// <summary> Override the OnNavigatedFrom method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedFrom(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||
{
|
||||
if (NavigationMode.Back == e.NavigationMode)
|
||||
@@ -67,8 +64,8 @@ namespace CampusAppWP8.Pages.Setting
|
||||
|
||||
#region private
|
||||
|
||||
/// <summary>Loads list picker.</summary>
|
||||
/// <remarks>Stubbfel, 10.09.2013.</remarks>
|
||||
/// <summary> Loads list picker. </summary>
|
||||
/// <remarks> Stubbfel, 10.09.2013. </remarks>
|
||||
private void LoadListPicker()
|
||||
{
|
||||
this.DefHeader.ProgressVisibility = Visibility.Visible;
|
||||
@@ -77,9 +74,8 @@ namespace CampusAppWP8.Pages.Setting
|
||||
this.courseList.LoadCourseList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method sets the ItemSource of the ListPickers
|
||||
/// </summary>
|
||||
/// <summary> Method sets the ItemSource of the ListPickers. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void SetupListPickers()
|
||||
{
|
||||
DegreeListPickerItemListModel degreeList = new DegreeListPickerItemListModel();
|
||||
@@ -101,9 +97,8 @@ namespace CampusAppWP8.Pages.Setting
|
||||
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method save the current profile
|
||||
/// </summary>
|
||||
/// <summary> Method save the current profile. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void SaveProfile()
|
||||
{
|
||||
try
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="StartPage.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>21.05.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the start page.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages
|
||||
{
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Navigation;
|
||||
using Windows.Networking.Proximity;
|
||||
using CampusAppWP8.Feed.Utility;
|
||||
using CampusAppWP8.File.Places;
|
||||
using CampusAppWP8.Model.Setting;
|
||||
using CampusAppWP8.Resources;
|
||||
using CampusAppWP8.Utility;
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
@@ -24,30 +24,33 @@ namespace CampusAppWP8.Pages
|
||||
using CampusAppWP8.Utility.NDEF;
|
||||
using Microsoft.Phone.Controls;
|
||||
using Microsoft.Phone.Shell;
|
||||
using CampusAppWP8.Model.Setting;
|
||||
using Windows.Networking.Proximity;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the StartPage
|
||||
/// </summary>
|
||||
/// <summary> Class for the StartPage. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class StartPage : PhoneApplicationPage
|
||||
{
|
||||
#region Member
|
||||
|
||||
/// <summary>The device.</summary>
|
||||
/// <summary> The device. </summary>
|
||||
private readonly ProximityDevice device = ProximityDevice.GetDefault();
|
||||
|
||||
/// <summary>List of initialise courses.</summary>
|
||||
/// <summary> List of initialise courses. </summary>
|
||||
private CourseFeed initCourseList;
|
||||
|
||||
/// <summary> The previous orientation. </summary>
|
||||
private PageOrientation prevOrientation;
|
||||
|
||||
/// <summary> Identifier for the ndef. </summary>
|
||||
private long ndefId;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="StartPage" /> class.
|
||||
/// </summary>
|
||||
/// <summary> Initializes a new instance of the <see cref="StartPage" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
public StartPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -82,7 +85,6 @@ namespace CampusAppWP8.Pages
|
||||
{
|
||||
menuItem5.Text = AppResources.Setting_ImpressumTitle;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
ApplicationBar.MenuItems.RemoveAt(ApplicationBar.MenuItems.Count - 1);
|
||||
@@ -91,7 +93,7 @@ namespace CampusAppWP8.Pages
|
||||
|
||||
if (!Settings.AppSetting.InitApp)
|
||||
{
|
||||
this.initPlaceFile();
|
||||
this.InitPlaceFile();
|
||||
this.initCourseList = new CourseFeed();
|
||||
this.initCourseList.OnLoaded += new CourseFeed.OnIO(this.StoreCourseFeed);
|
||||
this.initCourseList.LoadData();
|
||||
@@ -107,24 +109,15 @@ namespace CampusAppWP8.Pages
|
||||
}
|
||||
}
|
||||
|
||||
private void initPlaceFile()
|
||||
{
|
||||
PlacesFile file = new PlacesFile();
|
||||
file.LoadData();
|
||||
}
|
||||
|
||||
private long ndefId;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Method
|
||||
|
||||
#region protected
|
||||
|
||||
/// <summary>
|
||||
/// Methods overrides the OnNavigatedTo-Method
|
||||
/// </summary>
|
||||
/// <param name="e">some NavigationEventArgs</param>
|
||||
/// <summary> Methods overrides the OnNavigatedTo-Method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedTo(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
base.OnNavigatedTo(e);
|
||||
@@ -137,16 +130,15 @@ namespace CampusAppWP8.Pages
|
||||
this.prevOrientation = PageOrientation.Landscape;
|
||||
}
|
||||
|
||||
ndefId = this.device.SubscribeForMessage(Constants.NCFMessageType_NDEF, this.NDEFHandler);
|
||||
this.ndefId = this.device.SubscribeForMessage(Constants.NCFMessageType_NDEF, this.NDEFHandler);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Methods overrides the OnNavigatedFrom-Method
|
||||
/// </summary>
|
||||
/// <param name="e">some NavigationEventArgs</param>
|
||||
/// <summary> Methods overrides the OnNavigatedFrom-Method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedFrom(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||
{
|
||||
this.device.StopSubscribingForMessage(ndefId);
|
||||
this.device.StopSubscribingForMessage(this.ndefId);
|
||||
|
||||
base.OnNavigatedFrom(e);
|
||||
}
|
||||
@@ -155,18 +147,25 @@ namespace CampusAppWP8.Pages
|
||||
|
||||
#region private
|
||||
|
||||
/// <summary>Stores course feed.</summary>
|
||||
/// <remarks>Stubbfel, 10.09.2013.</remarks>
|
||||
/// <summary> Initialises the place file. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void InitPlaceFile()
|
||||
{
|
||||
PlacesFile file = new PlacesFile();
|
||||
file.LoadData();
|
||||
}
|
||||
|
||||
/// <summary> Stores course feed. </summary>
|
||||
/// <remarks> Stubbfel, 10.09.2013. </remarks>
|
||||
private void StoreCourseFeed()
|
||||
{
|
||||
this.initCourseList.SaveData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method handle OrientationPage
|
||||
/// </summary>
|
||||
/// <param name="sender">Caller of the function</param>
|
||||
/// <param name="e">some EventArgs</param>
|
||||
/// <summary> Method handle OrientationPage. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Caller of the function. </param>
|
||||
/// <param name="e"> some EventArgs. </param>
|
||||
private void PhoneApplicationPage_OrientationChanged(object sender, OrientationChangedEventArgs e)
|
||||
{
|
||||
// Switch the placement of the buttons based on an orientation change.
|
||||
@@ -203,8 +202,8 @@ namespace CampusAppWP8.Pages
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Move to Portrait format.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Move to Portrait format. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
private void MoveToPortrait()
|
||||
{
|
||||
if (!this.Row0.Children.Contains(this.MailAppButton)
|
||||
@@ -213,6 +212,7 @@ namespace CampusAppWP8.Pages
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this.Row0.Children.Remove(this.MailAppButton);
|
||||
this.Row3.Children.Add(this.MailAppButton);
|
||||
this.MailAppButton.SetValue(Grid.ColumnProperty, 0);
|
||||
@@ -226,8 +226,8 @@ namespace CampusAppWP8.Pages
|
||||
this.LinkAppButton.SetValue(Grid.ColumnProperty, 2);
|
||||
}
|
||||
|
||||
/// <summary>Move Grid to landscape format.</summary>
|
||||
/// <remarks>Stubbfel, 27.08.2013.</remarks>
|
||||
/// <summary> Move Grid to landscape format. </summary>
|
||||
/// <remarks> Stubbfel, 27.08.2013. </remarks>
|
||||
private void MoveGridToLandscape()
|
||||
{
|
||||
if (!this.Row3.Children.Contains(this.MailAppButton)
|
||||
@@ -238,7 +238,7 @@ namespace CampusAppWP8.Pages
|
||||
}
|
||||
|
||||
this.Row3.Children.Remove(this.MailAppButton);
|
||||
this.Row0.Children.Add(this.MailAppButton); ;
|
||||
this.Row0.Children.Add(this.MailAppButton);
|
||||
this.MailAppButton.SetValue(Grid.ColumnProperty, 3);
|
||||
|
||||
this.Row3.Children.Remove(this.OpenHoursAppButton);
|
||||
@@ -250,33 +250,30 @@ namespace CampusAppWP8.Pages
|
||||
this.LinkAppButton.SetValue(Grid.ColumnProperty, 3);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method Navigate to <see cref="Setting/UserProfil"/>
|
||||
/// </summary>
|
||||
/// <param name="sender">Caller of the function</param>
|
||||
/// <param name="e">some EventArgs</param>
|
||||
/// <summary> Method Navigate to <see cref="Setting/UserProfil"/> </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Caller of the function. </param>
|
||||
/// <param name="e"> some EventArgs. </param>
|
||||
private void ApplicationBarMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Uri url = new Uri(Constants.PathSetting_User, UriKind.Relative);
|
||||
NavigationService.Navigate(url);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method Navigate to <see cref="Setting/UserProfil"/>
|
||||
/// </summary>
|
||||
/// <param name="sender">Caller of the function</param>
|
||||
/// <param name="e">some EventArgs</param>
|
||||
/// <summary> Method Navigate to <see cref="Setting/UserProfil"/> </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Caller of the function. </param>
|
||||
/// <param name="e"> some EventArgs. </param>
|
||||
private void ApplicationBarMenuItem2_Click(object sender, EventArgs e)
|
||||
{
|
||||
Uri url = new Uri(Constants.PathSetting_App, UriKind.Relative);
|
||||
NavigationService.Navigate(url);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method Navigate to <see cref="Setting/UserProfil"/>
|
||||
/// </summary>
|
||||
/// <param name="sender">Caller of the function</param>
|
||||
/// <param name="e">some EventArgs</param>
|
||||
/// <summary> Method Navigate to <see cref="Setting/UserProfil"/> </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Caller of the function. </param>
|
||||
/// <param name="e"> some EventArgs. </param>
|
||||
private void ApplicationBarMenuItem4_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.device.StopSubscribingForMessage(this.ndefId);
|
||||
@@ -290,25 +287,23 @@ namespace CampusAppWP8.Pages
|
||||
private void ApplicationBarMenuItem5_Click(object sender, EventArgs e)
|
||||
{
|
||||
Uri url = new Uri("/Pages/Setting/Impressum.xaml", UriKind.Relative);
|
||||
NavigationService.Navigate(url);
|
||||
NavigationService.Navigate(url);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Event handler. Called by ApplicationBarMenuItem4 for click events.
|
||||
/// </summary>
|
||||
/// <param name="sender">Caller of the function.</param>
|
||||
/// <param name="e">Event information.</param>
|
||||
/// <summary> Event handler. Called by ApplicationBarMenuItem4 for click events. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Caller of the function. </param>
|
||||
/// <param name="e"> Event information. </param>
|
||||
private void ApplicationBarMenuItem3_Click(object sender, EventArgs e)
|
||||
{
|
||||
Uri url = new Uri("/Pages/Dev/QRScanner.xaml", UriKind.Relative);
|
||||
NavigationService.Navigate(url);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method change the Opacity of the ApplicationBar
|
||||
/// </summary>
|
||||
/// <param name="sender">Caller of the function</param>
|
||||
/// <param name="e">some EventArgs</param>
|
||||
/// <summary> Method change the Opacity of the ApplicationBar. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Caller of the function. </param>
|
||||
/// <param name="e"> some EventArgs. </param>
|
||||
private void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
|
||||
{
|
||||
if (e.IsMenuVisible)
|
||||
@@ -321,17 +316,15 @@ namespace CampusAppWP8.Pages
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method show all OptIns
|
||||
/// </summary>
|
||||
/// <summary> Method show all OptIns. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void ShowOptIns()
|
||||
{
|
||||
this.GeoWatchOptIN();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method show the GeoWatchOptIn in a MessageBox
|
||||
/// </summary>
|
||||
/// <summary> Method show the GeoWatchOptIn in a MessageBox. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void GeoWatchOptIN()
|
||||
{
|
||||
MessageBoxResult result = MessageBoxes.ShowGoeWatchOptInBox();
|
||||
@@ -348,6 +341,10 @@ namespace CampusAppWP8.Pages
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary> Event handler. Called by PintoStart for click events. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Caller of the function. </param>
|
||||
/// <param name="e"> Routed event information. </param>
|
||||
private void PintoStart_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
FrameworkElement elment = sender as FrameworkElement;
|
||||
@@ -404,9 +401,12 @@ namespace CampusAppWP8.Pages
|
||||
TileCreator.CreatePlaceNewsTile();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary> Handler, called when the ndef. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> Caller of the function. </param>
|
||||
/// <param name="message"> The message. </param>
|
||||
private void NDEFHandler(ProximityDevice sender, ProximityMessage message)
|
||||
{
|
||||
// create ndefMessage
|
||||
@@ -433,10 +433,13 @@ namespace CampusAppWP8.Pages
|
||||
this.ShowBtuTagMessageBox();
|
||||
}
|
||||
}
|
||||
|
||||
ndefId = this.device.SubscribeForMessage(Constants.NCFMessageType_NDEF, this.NDEFHandler);
|
||||
|
||||
this.ndefId = this.device.SubscribeForMessage(Constants.NCFMessageType_NDEF, this.NDEFHandler);
|
||||
}
|
||||
|
||||
/// <summary> Go to campus MapPage. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="tagContent"> The tag content. </param>
|
||||
private void GoToCampusMappage(string tagContent)
|
||||
{
|
||||
string pid = Wp8StringManager.FilterPlaceIdinNFCResultString(tagContent);
|
||||
@@ -452,9 +455,10 @@ namespace CampusAppWP8.Pages
|
||||
{
|
||||
NavigationService.Navigate(url);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary> Shows the btu tag message box. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void ShowBtuTagMessageBox()
|
||||
{
|
||||
MessageBoxResult msgResult = MessageBoxes.ShowBtuTagInfoOkCancelMessageBox();
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="StudentCouncilPage.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>03.07.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the student council page.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.StudentCouncil
|
||||
{
|
||||
using System;
|
||||
@@ -16,25 +17,22 @@ namespace CampusAppWP8.Pages.StudentCouncil
|
||||
using CampusAppWP8.Utility.Lui.MessageBoxes;
|
||||
using Microsoft.Phone.Controls;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the StudentCouncilPage
|
||||
/// </summary>
|
||||
/// <summary> Class for the StudentCouncilPage. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class StudentCouncilPage : PhoneApplicationPage
|
||||
{
|
||||
#region Members
|
||||
|
||||
/// <summary>
|
||||
/// the feed of the StudentCouncil
|
||||
/// </summary>
|
||||
/// <summary> the feed of the StudentCouncil. </summary>
|
||||
private StudentCouncilFeed feed;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="StudentCouncilPage" /> class.
|
||||
/// </summary>
|
||||
/// <summary> Initializes a new instance of the <see cref="StudentCouncilPage" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
public StudentCouncilPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -47,10 +45,9 @@ namespace CampusAppWP8.Pages.StudentCouncil
|
||||
|
||||
#region protected
|
||||
|
||||
/// <summary>
|
||||
/// Override the OnNavigatedTo method
|
||||
/// </summary>
|
||||
/// <param name="e">Arguments of navigation</param>
|
||||
/// <summary> Override the OnNavigatedTo method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedTo(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
base.OnNavigatedTo(e);
|
||||
@@ -69,19 +66,17 @@ namespace CampusAppWP8.Pages.StudentCouncil
|
||||
this.feed.LoadData(Utilities.GetLoadModus<CampusAppWPortalLib8.Model.StudentCouncil.StudentCouncilListModel>());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Override the OnNavigatedFrom method
|
||||
/// </summary>
|
||||
/// <param name="e">Arguments of navigation</param>
|
||||
/// <summary> Override the OnNavigatedFrom method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:System.Windows.Controls.Page.OnNavigatedFrom(NavigationEventArgs)"/>
|
||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||
{
|
||||
this.feed.SaveData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Override the OnOrientationChanged method.
|
||||
/// </summary>
|
||||
/// <param name="e">orientation changed args.</param>
|
||||
/// <summary> Override the OnOrientationChanged method. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="M:Microsoft.Phone.Controls.PhoneApplicationPage.OnOrientationChanged(OrientationChangedEventArgs)"/>
|
||||
protected override void OnOrientationChanged(OrientationChangedEventArgs e)
|
||||
{
|
||||
if (e.Orientation == PageOrientation.Landscape
|
||||
@@ -101,9 +96,8 @@ namespace CampusAppWP8.Pages.StudentCouncil
|
||||
#endregion
|
||||
#region private
|
||||
|
||||
/// <summary>
|
||||
/// Method initialize the Feed
|
||||
/// </summary>
|
||||
/// <summary> Method initialize the Feed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void InitializeFeed()
|
||||
{
|
||||
this.feed = new StudentCouncilFeed();
|
||||
@@ -112,47 +106,43 @@ namespace CampusAppWP8.Pages.StudentCouncil
|
||||
this.feed.OnFailedFile += new StudentCouncilFeed.OnFailed(this.FeedIsFailFile);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the feed is ready
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the feed is ready. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void FeedIsReady()
|
||||
{
|
||||
this.SetupStudentCouncilPivot();
|
||||
this.DefHeader.ProgressVisibility = System.Windows.Visibility.Collapsed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method set ItemSource
|
||||
/// </summary>
|
||||
/// <summary> Method set ItemSource. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void SetupStudentCouncilPivot()
|
||||
{
|
||||
this.StudentCouncilPivot.ItemsSource = this.feed.Model.GetStudentCouncilsGroupByFaculty();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// On clicking the update button in the ApplicationBar.
|
||||
/// Force a data update from the web.
|
||||
/// On clicking the update button in the ApplicationBar. Force a data update from the web.
|
||||
/// </summary>
|
||||
/// <param name="sender">button object</param>
|
||||
/// <param name="e">event args</param>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <param name="sender"> button object. </param>
|
||||
/// <param name="e"> event args. </param>
|
||||
private void StudentForceUpdate_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DefHeader.ProgressVisibility = System.Windows.Visibility.Visible;
|
||||
this.feed.ForceWebUpdate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the feed is failed
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the feed is failed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void FeedIsFailWeb()
|
||||
{
|
||||
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
|
||||
this.feed.ForceReadFile();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method will be execute if the feed is failed
|
||||
/// </summary>
|
||||
/// <summary> Method will be execute if the feed is failed. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void FeedIsFailFile()
|
||||
{
|
||||
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="WebmailPage.xaml.cs" company="BTU/IIT">
|
||||
// Company copyright tag.
|
||||
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
||||
// </copyright>
|
||||
// <author>stubbfel</author>
|
||||
// <sience>12.06.2013</sience>
|
||||
//----------------------------------------------------------------------
|
||||
// <author>Stubbfel</author>
|
||||
// <date>15.10.2013</date>
|
||||
// <summary>Implements the webmail page.xaml class</summary>
|
||||
//-----------------------------------------------------------------------
|
||||
namespace CampusAppWP8.Pages.Webmail
|
||||
{
|
||||
using System;
|
||||
using CampusAppWP8.Resources;
|
||||
using Microsoft.Phone.Controls;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the WebmailPage
|
||||
/// </summary>
|
||||
/// <summary> Class for the WebmailPage. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
/// <seealso cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>
|
||||
public partial class WebmailPage : PhoneApplicationPage
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="WebmailPage" /> class.
|
||||
/// </summary>
|
||||
/// <summary> Initializes a new instance of the <see cref="WebmailPage" /> class. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
public WebmailPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
@@ -31,9 +31,8 @@ namespace CampusAppWP8.Pages.Webmail
|
||||
|
||||
#region Method
|
||||
|
||||
/// <summary>
|
||||
/// Method load WebmailPage
|
||||
/// </summary>
|
||||
/// <summary> Method load WebmailPage. </summary>
|
||||
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
||||
private void LoadWebmailPage()
|
||||
{
|
||||
this.WebmailBrowser.Navigate(new Uri(Constants.UrlWebMail_Addr, UriKind.Absolute));
|
||||
|
||||
@@ -28,6 +28,13 @@
|
||||
</GlobalSettings>
|
||||
<Analyzers>
|
||||
<Analyzer AnalyzerId="StyleCop.CSharp.DocumentationRules">
|
||||
<Rules>
|
||||
<Rule Name="ElementParametersMustBeDocumented">
|
||||
<RuleSettings>
|
||||
<BooleanProperty Name="Enabled">False</BooleanProperty>
|
||||
</RuleSettings>
|
||||
</Rule>
|
||||
</Rules>
|
||||
<AnalyzerSettings>
|
||||
<StringProperty Name="CompanyName">BTU/IIT</StringProperty>
|
||||
<StringProperty Name="Copyright">The MIT License (MIT). Copyright (c) 2013 BTU/IIT.</StringProperty>
|
||||
|
||||
Reference in New Issue
Block a user