diff --git a/CampusAppWP8/CampusAppWP8/Pages/BTUTag/BTUTagInfo.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/BTUTag/BTUTagInfo.xaml.cs
index 954a455e..8bf66f31 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/BTUTag/BTUTagInfo.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/BTUTag/BTUTagInfo.xaml.cs
@@ -1,4 +1,11 @@
-
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
+//
+// Stubbfel
+// 15.10.2013
+// Implements the btu tag info.xaml class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Pages.BTTTag
{
using System;
@@ -6,15 +13,21 @@ namespace CampusAppWP8.Pages.BTTTag
using CampusApp8.Model.Setting;
using Microsoft.Phone.Controls;
+ /// Information about the btu tag.
+ /// Stubbfel, 15.10.2013.
+ ///
public partial class BTUTagInfo : PhoneApplicationPage
{
#region Member
+ /// The taghandler model.
private TagHandlerListPickerItemListModel taghandlerModel;
#endregion
#region Constructor
+ /// Initializes a new instance of the BTUTagInfo class.
+ /// Stubbfel, 15.10.2013.
public BTUTagInfo()
{
InitializeComponent();
@@ -28,10 +41,9 @@ namespace CampusAppWP8.Pages.BTTTag
#region Method
- ///
- /// Override the OnNavigatedFrom method
- ///
- /// Arguments of navigation
+ /// Override the OnNavigatedFrom method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
if (NavigationMode.Back == e.NavigationMode)
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml.cs
index 2777809c..0ee3bd2a 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml.cs
@@ -1,10 +1,11 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// fiedlchr
-// 13.08.2013
-//-----------------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the campus map page.xaml class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Pages.Campusmap
{
using System;
@@ -29,51 +30,43 @@ namespace CampusAppWP8.Pages.Campusmap
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
- /// Class for the campusMap page.
- /// Stubbfel, 19.08.2013.
+ /// Class for the campusMap page.
+ /// Stubbfel, 19.08.2013.
+ ///
public partial class CampusMapPage : PhoneApplicationPage
{
#region Member
- /// The device.
+ /// The device.
private readonly ProximityDevice device = ProximityDevice.GetDefault();
- /// Variable for the map model.
+ /// Variable for the map model.
private CampusMapModel campusMap;
- ///
- /// Variable for the PlaceFile
- ///
+ /// Variable for the PlaceFile.
private PlacesFile file;
- ///
- /// List of information names
- ///
+ /// List of information names.
private List informationsNames;
- ///
- /// Flag which indicates if an qrCode scan is running
- ///
+ /// Flag which indicates if an qrCode scan is running.
private bool qrcodeScan = false;
- ///
- /// Variable for the last query
- ///
+ /// Variable for the last query.
private string lastQuery;
- ///
- /// Flag which indicates the map show information of all buildings
- ///
+ /// Flag which indicates the map show information of all buildings.
private bool buildInfoEnable;
+ /// Identifier for the ndef.
private long ndefId;
#endregion
#region Constructor
- /// Initializes a new instance of the class.
- /// Stubbfel, 19.08.2013.
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 19.08.2013.
public CampusMapPage()
{
this.InitializeComponent();
@@ -110,15 +103,12 @@ namespace CampusAppWP8.Pages.Campusmap
#region Events
- ///
- /// Delegate for LoadingPlace events
- ///
- /// the events args
+ /// Delegate for LoadingPlace events.
+ /// Stubbfel, 15.10.2013.
+ /// the events args.
public delegate void LoadingPlace(string args);
- ///
- /// Event for loading places
- ///
+ /// Event for loading places.
public event LoadingPlace OnLoadingPlace;
#endregion
@@ -127,9 +117,9 @@ namespace CampusAppWP8.Pages.Campusmap
#region protected
- /// Methods overrides the OnNavigatedTo-Method.
- /// Stubbfel, 19.08.2013.
- /// some NavigationEventArgs.
+ /// Methods overrides the OnNavigatedTo-Method.
+ /// Stubbfel, 19.08.2013.
+ ///
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);
}
- ///
- /// Methods overrides the OnNavigatedFrom-Method
- ///
- /// some NavigationEventArgs
+ /// Methods overrides the OnNavigatedFrom-Method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
this.device.StopSubscribingForMessage(ndefId);
@@ -205,21 +194,19 @@ namespace CampusAppWP8.Pages.Campusmap
#region private
- ///
- /// Method set the lastQuery and register to OnLoadingPlace-Event
- ///
- /// the query string
- /// the event callback
+ /// Method set the lastQuery and register to OnLoadingPlace-Event.
+ /// Stubbfel, 15.10.2013.
+ /// the query string.
+ /// the event callback.
private void SetLastQuery(string query, Action action)
{
this.lastQuery = query;
this.OnLoadingPlace = new CampusMapPage.LoadingPlace(action);
}
- ///
- /// Method shows certain places as hidden Pin
- ///
- /// the query string
+ /// Method shows certain places as hidden Pin.
+ /// Stubbfel, 15.10.2013.
+ /// the query string.
private void ShowPlacesByQueryAsHiddenPin(string query)
{
if (!this.IsMapReady())
@@ -232,10 +219,9 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
- ///
- /// Method shows certain places as search Pin
- ///
- /// the query string
+ /// Method shows certain places as search Pin.
+ /// Stubbfel, 15.10.2013.
+ /// the query string.
private void ShowPlacesByQueryAsSearchPin(string query)
{
if (!this.IsMapReady())
@@ -254,32 +240,33 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
- ///
- /// Method show all places, which match with the query as a pin
- ///
- /// the query string
- /// the type of the pin
- /// if its true then send query to the place file otherwise to the CampusMapModel
+ /// Method show all places, which match with the query as a pin.
+ /// Stubbfel, 15.10.2013.
+ /// the query string.
+ /// the type of the pin.
+ ///
+ /// if its true then send query to the place file otherwise to the CampusMapModel.
+ ///
private void ShowPlacesByQuery(string query, MapPinModel.PinType pintype, bool allPlaces)
{
this.AddPins(this.SearchPlaces(query, allPlaces), pintype);
}
- ///
- /// Method show all places by placeId
- ///
- /// the placeId
- /// the type of the pin
- /// if its true then send query to the place file otherwise to the CampusMapModel
+ /// Method show all places by placeId.
+ /// Stubbfel, 15.10.2013.
+ /// the placeId.
+ /// the type of the pin.
+ ///
+ /// if its true then send query to the place file otherwise to the CampusMapModel.
+ ///
private void ShowPlacesByPlaceId(string placeId, MapPinModel.PinType pintype, bool allPlaces)
{
this.AddPinsByPids(new List() { placeId }, pintype, false, allPlaces);
}
- ///
- /// Method shows places by placeId from place file as search Pin
- ///
- /// the placeId
+ /// Method shows places by placeId from place file as search Pin.
+ /// Stubbfel, 15.10.2013.
+ /// the placeId.
private void ShowAllPlacesByPlaceIdAsSearchPin(string placeId)
{
if (!this.IsMapReady())
@@ -292,10 +279,9 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
- ///
- /// Method shows places by placeId from CampusMapModel as search Pin
- ///
- /// the placeId
+ /// Method shows places by placeId from CampusMapModel as search Pin.
+ /// Stubbfel, 15.10.2013.
+ /// the placeId.
private void ShowPlacesByPlaceIdAsSearchPin(string placeId)
{
if (!this.IsMapReady())
@@ -308,10 +294,9 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
- ///
- /// Method show all buildings of a campus
- ///
- /// the id of the campus
+ /// Method show all buildings of a campus.
+ /// Stubbfel, 15.10.2013.
+ /// the id of the campus.
private void ShowAllCampusBuilding(string campusId)
{
if (!this.IsMapReady())
@@ -324,10 +309,9 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
- ///
- /// Method check if the map loading is finish
- ///
- /// true, if the map is ready to use, otherwise false
+ /// Method check if the map loading is finish.
+ /// Stubbfel, 15.10.2013.
+ /// true, if the map is ready to use, otherwise false.
private bool IsMapReady()
{
if (this.campusMap == null || !this.campusMap.IsReady)
@@ -338,9 +322,8 @@ namespace CampusAppWP8.Pages.Campusmap
return true;
}
- ///
- /// Method will be execute if the place file is ready
- ///
+ /// Method will be execute if the place file is ready.
+ /// Stubbfel, 15.10.2013.
private void FileIsReady()
{
this.campusMap = new CBMainMapModel(this.file.Model.Places.ToList());
@@ -352,10 +335,10 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
- /// TextSearch click method.
- /// Stubbfel, 19.08.2013.
- /// caller object.
- /// some EventArgs.
+ /// TextSearch click method.
+ /// Stubbfel, 19.08.2013.
+ /// caller object.
+ /// some EventArgs.
private void SearchByText(object sender, RoutedEventArgs e)
{
string query = QString.Text.Trim();
@@ -369,11 +352,10 @@ namespace CampusAppWP8.Pages.Campusmap
this.ShowPlacesByQueryAsSearchPin(query);
}
- ///
- /// Method insert or remove the buildings pins
- ///
- /// caller object.
- /// some EventArgs.
+ /// Method insert or remove the buildings pins.
+ /// Stubbfel, 15.10.2013.
+ /// caller object.
+ /// some EventArgs.
private void ShowBuildingsInformation(object sender, EventArgs e)
{
string menuText;
@@ -394,10 +376,9 @@ namespace CampusAppWP8.Pages.Campusmap
item.Text = menuText;
}
- ///
- /// Method clear the Map
- ///
- /// (optional) tags of the UIElement
+ /// Method clear the Map.
+ /// Stubbfel, 15.10.2013.
+ /// (optional) tags of the UIElement.
private void ClearMap(List removeTags = null)
{
if (removeTags == null)
@@ -424,13 +405,14 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
- ///
- /// Method adds pin to the map by given list of placeId
- ///
- /// list of placeId
- /// type of pin
- /// (optional) if its true, clear canvas before adding
- /// (optional) if its true, load place from place file, otherwise from CampusMapModel
+ /// Method adds pin to the map by given list of placeId.
+ /// Stubbfel, 15.10.2013.
+ /// list of placeId.
+ /// type of pin.
+ /// (optional) if its true, clear canvas before adding.
+ ///
+ /// (optional) if its true, load place from place file, otherwise from CampusMapModel.
+ ///
private void AddPinsByPids(List pidList, MapPinModel.PinType pinType, bool clearCanvas = true, bool allPlaces = false)
{
// clear canvas
@@ -477,11 +459,10 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
- ///
- /// Method start a NFCScan
- ///
- /// sender of event
- /// the event args
+ /// Method start a NFCScan.
+ /// Stubbfel, 15.10.2013.
+ /// sender of event.
+ /// the event args.
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);
}
- ///
- /// Method start a QRCodeScan
- ///
- /// sender of event
- /// the event args
+ /// Method start a QRCodeScan.
+ /// Stubbfel, 15.10.2013.
+ /// sender of event.
+ /// the event args.
private void SearchPlaceByQR_Click(object sender, EventArgs e)
{
this.qrcodeScan = true;
@@ -504,11 +484,10 @@ namespace CampusAppWP8.Pages.Campusmap
this.NavigationService.Navigate(url);
}
- ///
- /// Method handle the result of a NFCScan
- ///
- /// the sender device
- /// the message of the device
+ /// Method handle the result of a NFCScan.
+ /// Stubbfel, 15.10.2013.
+ /// the sender device.
+ /// the message of the device.
private void NDEFHandler(ProximityDevice sender, ProximityMessage message)
{
// create ndefMessage
@@ -575,11 +554,13 @@ namespace CampusAppWP8.Pages.Campusmap
}
- /// Searches for the first places.
- /// Stubbfel, 19.08.2013.
- /// The query.
- /// (optional) if its true, search places in place file, otherwise in CampusMapModel
- /// The found places.
+ /// Searches for the first places.
+ /// Stubbfel, 19.08.2013.
+ /// The query.
+ ///
+ /// (optional) if its true, search places in place file, otherwise in CampusMapModel.
+ ///
+ /// The found places.
private List SearchPlaces(string query, bool allPlaces = false)
{
SpsModel spatial;
@@ -609,11 +590,11 @@ namespace CampusAppWP8.Pages.Campusmap
return spatial.GetPlacesByInformation(query, true, this.informationsNames);
}
- /// Adds the pins.
- /// Stubbfel, 19.08.2013.
- /// The places.
- /// The type.
- /// (Optional) the scroll.
+ /// Adds the pins.
+ /// Stubbfel, 19.08.2013.
+ /// The places.
+ /// The type.
+ /// (Optional) the scroll.
private void AddPins(List places, MapPinModel.PinType type, bool scroll = true)
{
foreach (PlaceModel place in places)
@@ -633,13 +614,15 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
- /// Add Pin to an certain position.
- /// Stubbfel, 19.08.2013.
- /// longitude parameter.
- /// latitude parameter.
- /// The type.
- /// (Optional) the scroll.
- /// (Optional) List of places, whose are associative with the pin
+ /// Add Pin to an certain position.
+ /// Stubbfel, 19.08.2013.
+ /// longitude parameter.
+ /// latitude parameter.
+ /// The type.
+ /// (Optional) the scroll.
+ ///
+ /// (Optional) List of places, whose are associative with the pin.
+ ///
private void AddPin(double x, double y, MapPinModel.PinType type, bool scroll = true, List assocPlaces = null)
{
Point scrollPoint = this.campusMap.GetScrollPoint(this.campusMap.ConverToPixelPoint(this.campusMap.ConverToMapPoint(x, y)));
@@ -670,18 +653,18 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
- /// On clicking the update button in the ApplicationBar.
- /// Stubbfel, 19.08.2013.
- /// caller object.
- /// some EventArgs.
+ /// On clicking the update button in the ApplicationBar.
+ /// Stubbfel, 19.08.2013.
+ /// caller object.
+ /// some EventArgs.
private void UpdateButtonAppBar_Click(object sender, System.EventArgs e)
{
this.ShowCurrentPositionDispatcher();
}
- /// execute ShowCurrentPosition-Method via Dispatcher.
- /// Stubbfel, 19.08.2013.
- /// (Optional) the scroll.
+ /// execute ShowCurrentPosition-Method via Dispatcher.
+ /// Stubbfel, 19.08.2013.
+ /// (Optional) the scroll.
private void ShowCurrentPositionDispatcher(bool scroll = true)
{
this.DefHeader.ProgressVisibility = Visibility.Visible;
@@ -690,9 +673,9 @@ namespace CampusAppWP8.Pages.Campusmap
thread.Start();
}
- /// Method add a pin on the at the position of the phone.
- /// Stubbfel, 19.08.2013.
- /// (Optional) the scroll.
+ /// Method add a pin on the at the position of the phone.
+ /// Stubbfel, 19.08.2013.
+ /// (Optional) the scroll.
private void ShowCurrentPosition(bool scroll = true)
{
if (Settings.AppSetting.GeoWatchEnable)
@@ -720,9 +703,9 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
- /// Sets pin to current position.
- /// Stubbfel, 19.08.2013.
- /// (Optional) the scroll.
+ /// Sets pin to current position.
+ /// Stubbfel, 19.08.2013.
+ /// (Optional) the scroll.
private void SetPinToCurrentPosition(bool scroll = true)
{
string lat = App.LoadFromAppState(Constants.GeoWatch_CurrentPosition_Lat);
@@ -743,12 +726,12 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
- /// Sets pin to position.
- /// Stubbfel, 27.08.2013.
- /// The latitude.
- /// The longitude.
- /// The type.
- /// (Optional) the scroll.
+ /// Sets pin to position.
+ /// Stubbfel, 27.08.2013.
+ /// The latitude.
+ /// The longitude.
+ /// The type.
+ /// (Optional) the scroll.
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;
}
- ///
- /// Method show same PlaceInformation
- ///
- /// List of places
+ /// Method show same PlaceInformation.
+ /// Stubbfel, 15.10.2013.
+ /// List of places.
private void ShowMapInfo(List places)
{
if (places == null)
@@ -821,6 +803,10 @@ namespace CampusAppWP8.Pages.Campusmap
}
}
+ /// Go to room list.
+ /// Stubbfel, 15.10.2013.
+ /// Identifier for the building.
+ /// (Optional) identifier for the room.
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);
}
-
- ///
- /// Method check if a certain place has some rooms
- ///
- /// the place id
- /// true, if the place has got rooms, otherwise false
+ /// Method check if a certain place has some rooms.
+ /// Stubbfel, 15.10.2013.
+ /// the place id.
+ /// true, if the place has got rooms, otherwise false.
private bool HasRooms(string placeId)
{
foreach (PlaceModel place in this.file.Model.Places)
@@ -852,7 +836,10 @@ namespace CampusAppWP8.Pages.Campusmap
return false;
}
-
+ /// Event handler. Called by Button for key down events.
+ /// Stubbfel, 15.10.2013.
+ /// caller object.
+ /// Key event information.
private void Button_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
{
if (e.Key == Key.Enter)
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/RoomListPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/RoomListPage.xaml.cs
index daa0a1aa..70ca3d7b 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/RoomListPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/RoomListPage.xaml.cs
@@ -1,29 +1,28 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 23.09.2013
-//-----------------------------------------------------------------------------
-
+// Stubbfel
+// 15.10.2013
+// Implements the room list page.xaml class
+//-----------------------------------------------------------------------
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;
/// Class of the RoomListPage.
/// Stubbfel, 14.10.2013.
@@ -42,10 +41,13 @@ namespace CampusAppWP8.Pages.Campusmap
/// true to pinch run.
private bool pinchRun = false;
- /// The mappoint.
+
+ /// The MapPoint.
private Point mappoint;
+
/// The offset point.
private Point offsetPoint;
+
/// The layer list picker.
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);
}
-
}
/// Shows the current room.
/// Stubbfel, 14.10.2013.
/// Identifier for the place.
- 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 { 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
/// Creates layer list picker.
/// Stubbfel, 14.10.2013.
- 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;
}
/// Shows the layer places.
/// Stubbfel, 14.10.2013.
/// (Optional) the layer key.
- 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 { room }));
}
@@ -329,16 +330,16 @@ namespace CampusAppWP8.Pages.Campusmap
/// Shows the layer places.
/// Stubbfel, 14.10.2013.
/// (Optional) zero-based index of the.
- 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);
}
/// Sets up the canvas.
/// Stubbfel, 14.10.2013.
/// Identifier for the building.
- 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
/// Selection changed event information.
private void Layer_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
- this.showLayerPlaces(((ListPickerItemModel)this.Layer.SelectedItem).Value);
+ this.ShowLayerPlaces(((ListPickerItemModel)this.Layer.SelectedItem).Value);
}
/// Clears the map described by removeTags.
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Dev/NFC.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Dev/NFC.xaml.cs
index 228bef0c..ca19f7d8 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Dev/NFC.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Dev/NFC.xaml.cs
@@ -1,11 +1,11 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 08.08.2013
-//----------------------------------------------------------------------
-
+// Stubbfel
+// 15.10.2013
+// Implements the nfc .xaml class
+//-----------------------------------------------------------------------
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;
- /// Nfc page.
- /// Stubbfel, 22.08.2013.
+ /// Nfc page.
+ /// Stubbfel, 22.08.2013.
+ ///
public partial class NFC : PhoneApplicationPage
{
#region Member
- /// The device.
+ /// The device.
private readonly ProximityDevice device = ProximityDevice.GetDefault();
- /// Zero-based index of the act ndef.
+ /// Zero-based index of the act ndef.
private int actNDEFIndex;
- /// List of ndefs.
+ /// List of ndefs.
private List ndefList;
+ /// The file.
private PlacesFile file;
#endregion
#region Constructor
- /// Initializes a new instance of the NFC class.
- /// Stubbfel, 22.08.2013.
+ /// Initializes a new instance of the NFC class.
+ /// Stubbfel, 22.08.2013.
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();
- //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
- /// Override the OnNavigatedTo method.
- /// Stubbfel, 22.08.2013.
- /// Arguments of navigation.
+ /// Override the OnNavigatedTo method.
+ /// Stubbfel, 22.08.2013.
+ ///
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
@@ -91,20 +78,35 @@ namespace CampusAppWP8.Pages.Dev
#region private
- /// Handler, called when the publish.
- /// Stubbfel, 22.08.2013.
- /// The sender.
- /// Identifier for the message.
+ /// File is ready.
+ /// Stubbfel, 15.10.2013.
+ private void FileIsReady()
+ {
+ this.ndefList = new List();
+
+ // 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();
+ }
+
+ /// Handler, called when the publish.
+ /// Stubbfel, 22.08.2013.
+ /// The sender.
+ /// Identifier for the message.
private void PublishHandler(ProximityDevice sender, long messageId)
{
this.device.StopPublishingMessage(messageId);
this.Dispatcher.BeginInvoke(new Action(() => MessageBox.Show("Writed:" + this.actNDEFIndex)));
}
- /// Handler, called when the ndef.
- /// Stubbfel, 22.08.2013.
- /// The sender.
- /// The message.
+ /// Handler, called when the ndef.
+ /// Stubbfel, 22.08.2013.
+ /// The sender.
+ /// The message.
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())));
}
- /// Event handler. Called by Read for click events.
- /// Stubbfel, 22.08.2013.
- /// The sender.
- /// Routed event information.
+ /// Event handler. Called by Read for click events.
+ /// Stubbfel, 22.08.2013.
+ /// The sender.
+ /// Routed event information.
private void Read_Click(object sender, RoutedEventArgs e)
{
this.device.SubscribeForMessage("NDEF", this.NDEFHandler);
}
- /// Event handler. Called by Next for click events.
- /// Stubbfel, 22.08.2013.
- /// The sender.
- /// Routed event information.
+ /// Event handler. Called by Next for click events.
+ /// Stubbfel, 22.08.2013.
+ /// The sender.
+ /// Routed event information.
private void Next_Click(object sender, RoutedEventArgs e)
{
if (this.actNDEFIndex < this.ndefList.Count - 1)
@@ -137,10 +139,10 @@ namespace CampusAppWP8.Pages.Dev
}
}
- /// Event handler. Called by Prev for click events.
- /// Stubbfel, 22.08.2013.
- /// The sender.
- /// Routed event information.
+ /// Event handler. Called by Prev for click events.
+ /// Stubbfel, 22.08.2013.
+ /// The sender.
+ /// Routed event information.
private void Prev_Click(object sender, RoutedEventArgs e)
{
if (this.actNDEFIndex > 0)
@@ -150,10 +152,10 @@ namespace CampusAppWP8.Pages.Dev
}
}
- /// Event handler. Called by Write for click events.
- /// Stubbfel, 22.08.2013.
- /// The sender.
- /// Routed event information.
+ /// Event handler. Called by Write for click events.
+ /// Stubbfel, 22.08.2013.
+ /// The sender.
+ /// Routed event information.
private void Write_Click(object sender, RoutedEventArgs e)
{
this.device.PublishBinaryMessage("NDEF:WriteTag", this.ndefList[this.actNDEFIndex].ToByteArray().AsBuffer(), this.PublishHandler);
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Dev/QRScanner.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Dev/QRScanner.xaml.cs
index 8c7c9b23..00fc417d 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Dev/QRScanner.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Dev/QRScanner.xaml.cs
@@ -1,66 +1,67 @@
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
// fiedlchr
-// 15.08.2013
-//
+// 15.10.2013
+// Implements the qr scanner.xaml class
+//
// 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
//
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------
+
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;
- ///
- /// QR Code scanner.
- ///
+ /// QR Code scanner.
+ /// fiedlchr, 15.10.2013.
+ ///
public partial class QRScanner : PhoneApplicationPage
{
#region Member
- /// The camera object.
+ /// The camera object.
private PhotoCamera cam = null;
- /// Thread for transfer the preview image to the reader.
+ /// Thread for transfer the preview image to the reader.
private Thread captureThread = null;
- /// For ending the thread.
+ /// For ending the thread.
private volatile bool captureThreadExit = false;
- /// QR reader object.
+ /// QR reader object.
private IBarcodeReader barcodeReader = null;
- /// Bitmap for transfer the camera image to the reader.
+ /// Bitmap for transfer the camera image to the reader.
private WriteableBitmap bit = null;
- /// true if this object is in autofocus.
+ /// true if this object is in autofocus.
private bool isInAutofocus = false;
- ///
- /// Variable for the storage key of the result
- ///
+ /// Variable for the storage key of the result.
private string resultAppStoreKey;
#endregion
#region Constructor
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
+ /// fiedlchr, 15.10.2013.
public QRScanner()
{
this.InitializeComponent();
@@ -73,10 +74,9 @@ namespace CampusAppWP8.Pages.Dev
#region protected
- ///
- /// Is called when this page will become the current page of a frame.
- ///
- /// event args.
+ /// Is called when this page will become the current page of a frame.
+ /// fiedlchr, 15.10.2013.
+ ///
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(this.Cam_Initialized);
@@ -102,10 +103,9 @@ namespace CampusAppWP8.Pages.Dev
}
}
- ///
- /// Is called when this page will not be the current page of a frame.
- ///
- /// event args.
+ /// Is called when this page will not be the current page of a frame.
+ /// fiedlchr, 15.10.2013.
+ ///
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
}
}
- ///
- /// Is called after the orientation has changed.
- ///
- /// event args.
+ /// Is called after the orientation has changed.
+ /// fiedlchr, 15.10.2013.
+ ///
protected override void OnOrientationChanged(OrientationChangedEventArgs e)
{
base.OnOrientationChanged(e);
@@ -159,11 +157,10 @@ namespace CampusAppWP8.Pages.Dev
#region private
- ///
- /// Event handler. Called by Cam for initialized events.
- ///
- /// Source of the event.
- /// Camera operation completed event information.
+ /// Event handler. Called by Cam for initialized events.
+ /// fiedlchr, 15.10.2013.
+ /// Source of the event.
+ /// Camera operation completed event information.
private void Cam_Initialized(object sender, Microsoft.Devices.CameraOperationCompletedEventArgs e)
{
if (e.Succeeded)
@@ -179,21 +176,18 @@ namespace CampusAppWP8.Pages.Dev
}
}
- ///
- /// Event handler. Called by Cam for automatic focus completed events.
- ///
- /// Source of the event.
- /// Camera operation completed event information.
+ /// Event handler. Called by Cam for automatic focus completed events.
+ /// fiedlchr, 15.10.2013.
+ /// Source of the event.
+ /// Camera operation completed event information.
private void Cam_AutoFocusCompl(object sender, CameraOperationCompletedEventArgs e)
{
- //this.isInAutofocus = false;
}
- ///
- /// Event handler. Called by CamView for tap events.
- ///
- /// Source of the event.
- /// Gesture event information.
+ /// Event handler. Called by CamView for tap events.
+ /// fiedlchr, 15.10.2013.
+ /// Source of the event.
+ /// Gesture event information.
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
}
}
- ///
- /// Executes the capture image action.
- ///
- /// The image.
- /// The width.
- /// The height.
+ /// Executes the capture image action.
+ /// fiedlchr, 15.10.2013.
+ /// The image.
+ /// The width.
+ /// The height.
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
}
}
+ /// Go to campus-mappage.
+ /// fiedlchr, 15.10.2013.
+ /// The tag content.
private void GoToCampusMappage(string tagContent)
{
string pid = Wp8StringManager.FilterPlaceIdinQRResultString(tagContent);
@@ -275,9 +271,8 @@ namespace CampusAppWP8.Pages.Dev
NavigationService.Navigate(url);
}
- ///
- /// Capture thread function.
- ///
+ /// Capture thread function.
+ /// fiedlchr, 15.10.2013.
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);
}
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Exams/Exams.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Exams/Exams.xaml.cs
index cf2c0e0a..afca0713 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Exams/Exams.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Exams/Exams.xaml.cs
@@ -1,12 +1,16 @@
-//
-// Company copyright tag.
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 02.09.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the exams.xaml class
+//-----------------------------------------------------------------------
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;
- /// class of ExamsPage.
- /// Stubbfel, 02.09.2013.
+ /// class of ExamsPage.
+ /// Stubbfel, 02.09.2013.
+ ///
public partial class Exams : PhoneApplicationPage
{
#region Member
- /// The feed.
+ /// The feed.
private ExamFeed feed;
- /// The exam file.
+ /// The exam file.
private ExamFile file;
#endregion
#region Constructor
- /// Initializes a new instance of the Exams class.
- /// Stubbfel, 02.09.2013.
+ /// Initializes a new instance of the Exams class.
+ /// Stubbfel, 02.09.2013.
public Exams()
{
this.InitializeComponent();
@@ -52,9 +55,9 @@ namespace CampusAppWP8.Pages.Exams
#region protected
- /// Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.
- /// Stubbfel, 02.09.2013.
- /// Ein Objekt, das die Ereignisdaten enthält.
+ /// Is called when this page will become the current page of a frame.
+ /// stubbfel, 15.10.2013.
+ ///
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();
-
}
- ///
- /// Wird aufgerufen, wenn eine Seite nicht mehr die aktive Seite in einem Frame ist.
- ///
- /// Stubbfel, 02.09.2013.
- /// Ein Objekt, das die Ereignisdaten enthält.
+ /// Is called when this page will not be the current page of a frame.
+ /// stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
if (NavigationMode.Back == e.NavigationMode)
@@ -99,9 +99,8 @@ namespace CampusAppWP8.Pages.Exams
this.feed.LoadData(Utilities.GetLoadModus());
}
-
- /// Method initialize the Feed.
- /// Stubbfel, 02.09.2013.
+ /// Method initialize the Feed.
+ /// Stubbfel, 02.09.2013.
private void InitializeFeed()
{
this.feed = new ExamFeed();
@@ -110,8 +109,8 @@ namespace CampusAppWP8.Pages.Exams
this.feed.OnFailedFile += new ExamFeed.OnFailed(this.FeedIsFailFile);
}
- /// Method will be execute if the feed is ready.
- /// Stubbfel, 02.09.2013.
+ /// Method will be execute if the feed is ready.
+ /// Stubbfel, 02.09.2013.
private void FeedIsReady()
{
if (this.Dispatcher != null)
@@ -124,16 +123,16 @@ namespace CampusAppWP8.Pages.Exams
}
}
- /// Executes the PDF reader operation.
- /// Stubbfel, 03.09.2013.
+ /// Executes the PDF reader operation.
+ /// Stubbfel, 03.09.2013.
private void LaunchPDFReader()
{
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
this.file.SaveAndLaunchFile();
}
- /// Sets up the exam list.
- /// Stubbfel, 02.09.2013.
+ /// Sets up the exam list.
+ /// Stubbfel, 02.09.2013.
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;
}
- /// Calculates the selected index.
- /// Stubbfel, 02.09.2013.
- /// The calculated selected index.
+ /// Calculates the selected index.
+ /// Stubbfel, 02.09.2013.
+ /// The calculated selected index.
private int CalcSelectedIndex()
{
int result = App.LoadFromIsolatedStorage(Constants.ExamPageModelKey);
@@ -184,12 +183,12 @@ namespace CampusAppWP8.Pages.Exams
break;
}
}
-
+
return result;
}
- /// Method will be execute if the feed is failed.
- /// Stubbfel, 02.09.2013.
+ /// Method will be execute if the feed is failed.
+ /// Stubbfel, 02.09.2013.
private void FeedIsFailWeb()
{
if (this.Dispatcher != null)
@@ -200,29 +199,30 @@ namespace CampusAppWP8.Pages.Exams
{
MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
}
+
this.feed.ForceReadFile();
}
- /// Method will be execute if the feed is failed.
- /// Stubbfel, 02.09.2013.
+ /// Method will be execute if the feed is failed.
+ /// Stubbfel, 02.09.2013.
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;
}
}
- /// Event handler. Called by Button for click events.
- /// Stubbfel, 03.09.2013.
- /// Source of the event.
- /// Routed event information.
+ /// Event handler. Called by Button for click events.
+ /// Stubbfel, 03.09.2013.
+ /// Source of the event.
+ /// Routed event information.
private void Button_Click(object sender, RoutedEventArgs e)
{
Button button = sender as Button;
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Lecture/LecturePage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Lecture/LecturePage.xaml.cs
index 606a9366..87ae249c 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Lecture/LecturePage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Lecture/LecturePage.xaml.cs
@@ -1,10 +1,11 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 13.06.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the lecture page.xaml class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Pages.Lecture
{
using System;
@@ -18,38 +19,28 @@ namespace CampusAppWP8.Pages.Lecture
using CampusAppWPortalLib8.Model.Utility;
using Microsoft.Phone.Controls;
-
- ///
- /// Class for the LecturePage
- ///
+ /// Class for the LecturePage.
+ /// Stubbfel, 15.10.2013.
+ ///
public partial class LecturePage : PhoneApplicationPage
{
#region Member
- ///
- /// actual LectureAPI
- ///
+ /// actual LectureAPI.
private LectureApi api;
- ///
- /// List for the courses of the BTU
- ///
- ///
- /// need to be extend to full list
- ///
+ /// List for the courses of the BTU.
private LecturePageModel pageModel;
- ///
- /// flag for initialed page
- ///
+ /// flag for initialed page.
private bool init;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public LecturePage()
{
this.InitializeComponent();
@@ -63,10 +54,9 @@ namespace CampusAppWP8.Pages.Lecture
#region protected
- ///
- /// Methods overrides the OnNavigatedFrom-Method
- ///
- /// some NavigationEventArgs
+ /// Methods overrides the OnNavigatedFrom-Method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
if (NavigationMode.Back == e.NavigationMode)
@@ -88,9 +78,8 @@ namespace CampusAppWP8.Pages.Lecture
#region private
- ///
- /// Load the PageModel
- ///
+ /// Load the PageModel.
+ /// Stubbfel, 15.10.2013.
private void LoadPageModel()
{
this.DefHeader.ProgressVisibility = Visibility.Visible;
@@ -99,9 +88,8 @@ namespace CampusAppWP8.Pages.Lecture
this.pageModel.LoadLists();
}
- ///
- /// Method sets the ItemSource of the ListPickers
- ///
+ /// Method sets the ItemSource of the ListPickers.
+ /// Stubbfel, 15.10.2013.
private void SetupListPickers()
{
this.Course.ItemsSource = this.pageModel.CourseList.List;
@@ -122,10 +110,9 @@ namespace CampusAppWP8.Pages.Lecture
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
}
- ///
- /// Method set the last selected index of the ListPickers
- ///
- /// Last PageModel
+ /// Method set the last selected index of the ListPickers.
+ /// Stubbfel, 15.10.2013.
+ /// Last PageModel.
private void SetLastSelectedIndex(LecturePageModel lastPageModel)
{
this.pageModel.SelectCourseIndex = lastPageModel.SelectCourseIndex;
@@ -135,9 +122,8 @@ namespace CampusAppWP8.Pages.Lecture
this.pageModel.SelectSemesterIndex = lastPageModel.SelectSemesterIndex;
}
- ///
- /// Method set the last selected index of the ListPickers
- ///
+ /// Method set the last selected index of the ListPickers.
+ /// Stubbfel, 15.10.2013.
private void SetSelectedIndex()
{
this.Course.SelectedIndex = this.pageModel.SelectCourseIndex;
@@ -147,9 +133,8 @@ namespace CampusAppWP8.Pages.Lecture
this.To.SelectedIndex = this.pageModel.SelectToIndex;
}
- ///
- /// Method store the actual selectIndex to the models
- ///
+ /// Method store the actual selectIndex to the models.
+ /// Stubbfel, 15.10.2013.
private void StoreSelectedIndex()
{
this.pageModel.SelectCourseIndex = this.Course.SelectedIndex;
@@ -159,11 +144,10 @@ namespace CampusAppWP8.Pages.Lecture
this.pageModel.SelectToIndex = this.To.SelectedIndex;
}
- ///
- /// Method send a request to the Feed
- ///
- /// sender of this event
- /// events arguments
+ /// Method send a request to the Feed.
+ /// Stubbfel, 15.10.2013.
+ /// sender of this event.
+ /// events arguments.
private void SendRequest(object sender, RoutedEventArgs e)
{
this.api = new LectureApi();
@@ -176,9 +160,10 @@ namespace CampusAppWP8.Pages.Lecture
}
///
- /// 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.
///
- /// a list of parameters
+ /// Stubbfel, 15.10.2013.
+ /// a list of parameters.
private List CreateUrlParameter()
{
ListPickerItemModel semester = (ListPickerItemModel)this.Semester.SelectedItem;
@@ -196,9 +181,8 @@ namespace CampusAppWP8.Pages.Lecture
return parameterList;
}
- ///
- /// Method will be execute if the feed is ready
- ///
+ /// Method will be execute if the feed is ready.
+ /// Stubbfel, 15.10.2013.
private void ApiIsReady()
{
string query = this.ActivtyName.Text;
@@ -213,11 +197,10 @@ namespace CampusAppWP8.Pages.Lecture
NavigationService.Navigate(url);
}
- ///
- /// EventHandler for changed degree selection
- ///
- /// sender object
- /// some args
+ /// EventHandler for changed degree selection.
+ /// Stubbfel, 15.10.2013.
+ /// sender object.
+ /// some args.
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;
}
- ///
- /// EventHandler for changed from selection
- ///
- /// sender object
- /// some args
+ /// EventHandler for changed from selection.
+ /// Stubbfel, 15.10.2013.
+ /// sender object.
+ /// some args.
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;
}
- ///
- /// Method will be execute if the feed is failed
- ///
+ /// Method will be execute if the feed is failed.
+ /// Stubbfel, 15.10.2013.
private void ApiIsFail()
{
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoad);
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Lecture/ModulWebPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Lecture/ModulWebPage.xaml.cs
index b7a08572..4864a549 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Lecture/ModulWebPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Lecture/ModulWebPage.xaml.cs
@@ -1,10 +1,11 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 11.06.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the modul web page.xaml class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Pages.Lecture
{
using System;
@@ -12,16 +13,15 @@ namespace CampusAppWP8.Pages.Lecture
using CampusAppWP8.Resources;
using Microsoft.Phone.Controls;
- ///
- /// Class for the page which shows Webpages from the BaseAddress
- ///
+ /// A modul web page.
+ /// Stubbfel, 15.10.2013.
+ ///
public partial class ModulWebPage : PhoneApplicationPage
{
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public ModulWebPage()
{
this.InitializeComponent();
@@ -31,10 +31,9 @@ namespace CampusAppWP8.Pages.Lecture
#region Method
- ///
- /// Override the OnNavigatedTo method
- ///
- /// Arguments of navigation
+ /// Override the OnNavigatedTo method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedTo(NavigationEventArgs e)
{
if (NavigationContext.QueryString.ContainsKey(Constants.ParamModelLecture_ModulNumber))
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultDetailPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultDetailPage.xaml.cs
index 30de8370..dd005180 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultDetailPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultDetailPage.xaml.cs
@@ -1,10 +1,11 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 11.06.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the result detail page.xaml class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Pages.Lecture
{
using System.Windows.Navigation;
@@ -12,16 +13,15 @@ namespace CampusAppWP8.Pages.Lecture
using CampusAppWP8.Resources;
using Microsoft.Phone.Controls;
- ///
- /// Class for the page which shows details of an activity
- ///
+ /// Class for the page which shows details of an activity.
+ /// Stubbfel, 15.10.2013.
+ ///
public partial class ResultDetailPage : PhoneApplicationPage
{
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public ResultDetailPage()
{
this.InitializeComponent();
@@ -32,10 +32,10 @@ namespace CampusAppWP8.Pages.Lecture
#region Method
#region protected
- ///
- /// Override the OnNavigatedTo method
- ///
- /// Arguments of navigation
+
+ /// Override the OnNavigatedTo method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedTo(NavigationEventArgs e)
{
if (NavigationContext.QueryString.ContainsKey(Constants.ParamModelLecture_ActivityId))
@@ -51,10 +51,9 @@ namespace CampusAppWP8.Pages.Lecture
#region private
- ///
- /// Method load a certain Activity from the model
- ///
- /// id of the activity
+ /// Method load a certain Activity from the model.
+ /// Stubbfel, 15.10.2013.
+ /// id of the activity.
private void LoadActivity(int activityId)
{
LectureWp8List list = App.LoadFromIsolatedStorage(Constants.IsolatedStorage_LectureModel);
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultPage.xaml.cs
index 296593b0..4a99fffb 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Lecture/ResultPage.xaml.cs
@@ -1,10 +1,11 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 11.06.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the result page.xaml class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Pages.Lecture
{
using System;
@@ -16,16 +17,15 @@ namespace CampusAppWP8.Pages.Lecture
using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
- ///
- /// Class for the page which shows the results of an LectureRequest
- ///
+ /// Class for the page which shows the results of an LectureRequest.
+ /// Stubbfel, 15.10.2013.
+ ///
public partial class ResultPage : PhoneApplicationPage
{
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public ResultPage()
{
this.InitializeComponent();
@@ -35,10 +35,9 @@ namespace CampusAppWP8.Pages.Lecture
#region Method
- ///
- /// Override the OnNavigatedTo method
- ///
- /// Arguments of navigation
+ /// Override the OnNavigatedTo method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs
index b4962976..0e3a5bac 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Links/LinkPage.xaml.cs
@@ -1,10 +1,11 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 02.07.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the link page.xaml class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Pages.Links
{
using System;
@@ -16,35 +17,28 @@ namespace CampusAppWP8.Pages.Links
using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
- ///
- /// Class for the LinkPage
- ///
+ /// Class for the LinkPage.
+ /// Stubbfel, 15.10.2013.
+ ///
public partial class LinkPage : PhoneApplicationPage
{
#region Members
- ///
- /// the feed of the CommonLinks
- ///
+ /// the feed of the CommonLinks.
private CommonLinkFeed commonLinkFeed;
- ///
- /// the feed of the ClubLinks
- ///
+ /// the feed of the ClubLinks.
private ClubLinkFeed clubLinkFeed;
- ///
- /// how many feeds are currently loading
- ///
+ /// how many feeds are currently loading.
private int loadingFeeds;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public LinkPage()
{
this.InitializeComponent();
@@ -56,10 +50,9 @@ namespace CampusAppWP8.Pages.Links
#region protected
- ///
- /// Override the OnNavigatedTo method
- ///
- /// Arguments of navigation
+ /// Override the OnNavigatedTo method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
@@ -77,10 +70,9 @@ namespace CampusAppWP8.Pages.Links
this.clubLinkFeed.LoadData(Utilities.GetLoadModus());
}
- ///
- /// Override the OnNavigatedFrom method
- ///
- /// Arguments of navigation
+ /// Override the OnNavigatedFrom method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
this.clubLinkFeed.SaveData();
@@ -90,9 +82,8 @@ namespace CampusAppWP8.Pages.Links
#endregion
#region private
- ///
- /// Method initialize the Feeds
- ///
+ /// Method initialize the Feeds.
+ /// Stubbfel, 15.10.2013.
private void InitializeFeeds()
{
if (this.commonLinkFeed == null)
@@ -106,9 +97,8 @@ namespace CampusAppWP8.Pages.Links
}
}
- ///
- /// Method initialize the CommonLinkFeed
- ///
+ /// Method initialize the CommonLinkFeed.
+ /// Stubbfel, 15.10.2013.
private void InitializeCommonLinkFeed()
{
this.commonLinkFeed = new CommonLinkFeed();
@@ -117,9 +107,8 @@ namespace CampusAppWP8.Pages.Links
this.commonLinkFeed.OnFailedFile += new CommonLinkFeed.OnFailed(this.FeedIsFailFile);
}
- ///
- /// Method initialize the ClubLinkFeed
- ///
+ /// Method initialize the ClubLinkFeed.
+ /// Stubbfel, 15.10.2013.
private void InitializeClubLinkFeed()
{
this.clubLinkFeed = new ClubLinkFeed();
@@ -128,46 +117,42 @@ namespace CampusAppWP8.Pages.Links
this.clubLinkFeed.OnFailedFile += new ClubLinkFeed.OnFailed(this.FeedIsFailFile);
}
- ///
- /// Method will be execute if the CommonLinkFeed is ready
- ///
+ /// Method will be execute if the CommonLinkFeed is ready.
+ /// Stubbfel, 15.10.2013.
private void CommonLinkFeedIsReady()
{
this.SetupCommonPivot();
this.SetupProgressBarVisibilityCollapsed();
}
- ///
- /// Method will be execute if the ClubLinkFeed is ready
- ///
+ /// Method will be execute if the ClubLinkFeed is ready.
+ /// Stubbfel, 15.10.2013.
private void ClubLinkFeedIsReady()
{
this.SetupClubPivot();
this.SetupProgressBarVisibilityCollapsed();
}
- ///
- /// Method set ItemSource for the CommonLinkPanel
- ///
+ /// Method set ItemSource for the CommonLinkPanel.
+ /// Stubbfel, 15.10.2013.
private void SetupCommonPivot()
{
this.CommonLinkPanel.ItemsSource = this.commonLinkFeed.Model.Links;
}
- ///
- /// Method set ItemSource for the ClubLinkPanel
- ///
+ /// Method set ItemSource for the ClubLinkPanel.
+ /// Stubbfel, 15.10.2013.
private void SetupClubPivot()
{
this.ClubLinkPanel.ItemsSource = this.clubLinkFeed.Model.Links;
}
///
- /// 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.
///
- /// button object
- /// event args
+ /// Stubbfel, 15.10.2013.
+ /// button object.
+ /// event args.
private void LinkForceUpdate_Click(object sender, EventArgs e)
{
this.loadingFeeds = 2;
@@ -177,27 +162,24 @@ namespace CampusAppWP8.Pages.Links
this.clubLinkFeed.ForceWebUpdate();
}
- ///
- /// Method will be execute if the feed is failed
- ///
+ /// Method will be execute if the feed is failed.
+ /// Stubbfel, 15.10.2013.
private void ClubLinkFeedIsFailWeb()
{
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
this.clubLinkFeed.ForceReadFile();
}
- ///
- /// Method will be execute if the feed is failed
- ///
+ /// Method will be execute if the feed is failed.
+ /// Stubbfel, 15.10.2013.
private void CommonLinkFeedIsFailWeb()
{
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
this.commonLinkFeed.ForceReadFile();
}
- ///
- /// Method will be execute if the feed is failed
- ///
+ /// Method will be execute if the feed is failed.
+ /// Stubbfel, 15.10.2013.
private void FeedIsFailFile()
{
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
@@ -205,8 +187,9 @@ namespace CampusAppWP8.Pages.Links
}
///
- /// 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.
///
+ /// Stubbfel, 15.10.2013.
private void SetupProgressBarVisibilityCollapsed()
{
this.loadingFeeds--;
@@ -216,11 +199,10 @@ namespace CampusAppWP8.Pages.Links
}
}
- ///
- /// Method handle OrientationPage
- ///
- /// Caller of the function
- /// some EventArgs
+ /// Method handle OrientationPage.
+ /// Stubbfel, 15.10.2013.
+ /// Caller of the function.
+ /// some EventArgs.
private void PhoneApplicationPage_OrientationChanged(object sender, OrientationChangedEventArgs e)
{
if (this.Orientation == PageOrientation.LandscapeLeft || this.Orientation == PageOrientation.LandscapeRight)
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs
index 0ee00176..ac8acaec 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Mensa/MensaPage.xaml.cs
@@ -1,51 +1,43 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 04.05.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the mensa page.xaml class
+//-----------------------------------------------------------------------
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;
- ///
- /// Class for the MensaPage
- ///
+ /// Class for the MensaPage.
+ /// Stubbfel, 15.10.2013.
+ ///
public partial class MensaPage : PhoneApplicationPage
{
#region Members
- ///
- /// the feed of the mensa
- ///
+ /// the feed of the mensa.
private MensaFeed feed;
///
- /// 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.
///
private int selectedIndex;
- ///
- /// Flag indicate that the feed was refreshed
- ///
+ /// Flag indicate that the feed was refreshed.
private bool refreshed = false;
///
@@ -53,18 +45,15 @@ namespace CampusAppWP8.Pages.Mensa
///
// private CampusSpsApi campusApi;
- ///
- /// Flag for forcing webLoad
- ///
+ /// Flag for forcing webLoad.
private bool forceLoad = false;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public MensaPage()
{
this.InitializeComponent();
@@ -96,10 +85,9 @@ namespace CampusAppWP8.Pages.Mensa
#region protected
- ///
- /// Override the OnNavigatedTo method
- ///
- /// Arguments of navigation
+ /// Override the OnNavigatedTo method.
+ /// Stubbfel, 15.10.2013.
+ ///
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();
}
- ///
- /// Override the OnNavigatedFrom method
- ///
- /// Arguments of navigation
+ /// Override the OnNavigatedFrom method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
if (this.feed != null)
@@ -154,9 +142,8 @@ namespace CampusAppWP8.Pages.Mensa
}
}*/
- ///
- /// Method determine campus and load data from correct feed
- ///
+ /// Method determine campus and load data from correct feed.
+ /// Stubbfel, 15.10.2013.
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();*/
}
- ///
- /// Method initialize the Feed depends of a campus
- ///
- /// campus parameter
+ /// Method initialize the Feed depends of a campus.
+ /// Stubbfel, 15.10.2013.
+ /// campus parameter.
private void InitializeFeed(CampusAppWPortalLib8.Model.Settings.Campus campus)
{
this.feed = MensaFeed.CreateCampusMensaFeed(campus);
@@ -215,9 +200,8 @@ namespace CampusAppWP8.Pages.Mensa
}
}
- ///
- /// Method initialize the Feed
- ///
+ /// Method initialize the Feed.
+ /// Stubbfel, 15.10.2013.
private void InitializeFeed()
{
if (Settings.AppSetting.GeoWatchEnable)
@@ -231,36 +215,32 @@ namespace CampusAppWP8.Pages.Mensa
}
}
- ///
- /// Method will be execute if the feed is ready
- ///
+ /// Method will be execute if the feed is ready.
+ /// Stubbfel, 15.10.2013.
private void FeedIsReady()
{
this.SetupMensaPivot();
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
}
- ///
- /// Method will be execute if the feed is failed
- ///
+ /// Method will be execute if the feed is failed.
+ /// Stubbfel, 15.10.2013.
private void FeedIsFailWeb()
{
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
this.feed.ForceReadFile();
}
- ///
- /// Method will be execute if the feed is failed
- ///
+ /// Method will be execute if the feed is failed.
+ /// Stubbfel, 15.10.2013.
private void FeedIsFailFile()
{
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
}
- ///
- /// Method set ItemSource and SelectedIndex for the pivot
- ///
+ /// Method set ItemSource and SelectedIndex for the pivot.
+ /// Stubbfel, 15.10.2013.
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;
}
- ///
- /// Method create the IconsUrl for the meals
- ///
+ /// Method create the IconsUrl for the meals.
+ /// Stubbfel, 15.10.2013.
private void CreatesMealIcons()
{
foreach (MenuModel menus in this.feed.Model.Menus)
@@ -316,9 +295,8 @@ namespace CampusAppWP8.Pages.Mensa
}
}
- ///
- /// Method calculate which pivot has to be selected
- ///
+ /// Method calculate which pivot has to be selected.
+ /// Stubbfel, 15.10.2013.
private void CalcSelectedIndex()
{
DayOfWeek today = DateTime.Now.DayOfWeek;
@@ -349,11 +327,11 @@ namespace CampusAppWP8.Pages.Mensa
}
///
- /// 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.
///
- /// button object
- /// event args
+ /// Stubbfel, 15.10.2013.
+ /// button object.
+ /// event args.
private void MensaForceUpdate_Click(object sender, EventArgs e)
{
this.DefHeader.ProgressVisibility = Visibility.Visible;
@@ -362,41 +340,40 @@ namespace CampusAppWP8.Pages.Mensa
this.refreshed = true;
}
- /// Event handler. Called by ApplicationBarMenuItem for click events.
- /// Stubbfel, 26.08.2013.
- /// button object.
- /// Event information.
+ /// Event handler. Called by ApplicationBarMenuItem for click events.
+ /// Stubbfel, 26.08.2013.
+ /// button object.
+ /// Event information.
private void ApplicationBarMenuItem_Click(object sender, EventArgs e)
{
this.DefHeader.ProgressVisibility = Visibility.Visible;
this.InitializeFeed(CampusAppWPortalLib8.Model.Settings.Campus.CB_MAIN);
}
- /// Event handler. Called by ApplicationBarMenuItem2 for click events.
- /// Stubbfel, 26.08.2013.
- /// button object.
- /// Event information.
+ /// Event handler. Called by ApplicationBarMenuItem2 for click events.
+ /// Stubbfel, 26.08.2013.
+ /// button object.
+ /// Event information.
private void ApplicationBarMenuItem2_Click(object sender, EventArgs e)
{
this.DefHeader.ProgressVisibility = Visibility.Visible;
this.InitializeFeed(CampusAppWPortalLib8.Model.Settings.Campus.CB_SOUTH);
}
- /// Event handler. Called by ApplicationBarMenuItem3 for click events.
- /// Stubbfel, 26.08.2013.
- /// button object.
- /// Event information.
+ /// Event handler. Called by ApplicationBarMenuItem3 for click events.
+ /// Stubbfel, 26.08.2013.
+ /// button object.
+ /// Event information.
private void ApplicationBarMenuItem3_Click(object sender, EventArgs e)
{
this.DefHeader.ProgressVisibility = Visibility.Visible;
this.InitializeFeed(CampusAppWPortalLib8.Model.Settings.Campus.SFB_MAIN);
}
- ///
- /// Method handle OrientationPage
- ///
- /// Caller of the function
- /// some EventArgs
+ /// Method handle OrientationPage.
+ /// Stubbfel, 15.10.2013.
+ /// Caller of the function.
+ /// some EventArgs.
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);
}
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml.cs
index 520f1d88..886c8239 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Person/PersonPage.xaml.cs
@@ -1,14 +1,16 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 09.09.2013
-//----------------------------------------------------------------------
-
+// Stubbfel
+// 15.10.2013
+// Implements the person page.xaml class
+//-----------------------------------------------------------------------
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;
- /// Person page.
- /// Stubbfel, 09.09.2013.
+ /// Person page.
+ /// Stubbfel, 09.09.2013.
+ ///
public partial class PersonPage : PhoneApplicationPage
{
#region Member
- /// The API.
+ /// The API.
private PersonSearchApi api;
#endregion
#region Constructor
- /// Initializes a new instance of the PersonPage class.
- /// Stubbfel, 09.09.2013.
+ /// Initializes a new instance of the PersonPage class.
+ /// Stubbfel, 09.09.2013.
public PersonPage()
{
this.InitializeComponent();
@@ -45,10 +46,10 @@ namespace CampusAppWP8.Pages.Person
#region Method
- /// Sends a request.
- /// Stubbfel, 09.09.2013.
- /// Source of the event.
- /// Routed event information.
+ /// Sends a request.
+ /// Stubbfel, 09.09.2013.
+ /// Source of the event.
+ /// Routed event information.
private void SendRequest(object sender, RoutedEventArgs e)
{
string query = this.SearchName.Text.Trim();
@@ -66,10 +67,10 @@ namespace CampusAppWP8.Pages.Person
this.api.LoadData();
}
- /// Creates URL parameter.
- /// Stubbfel, 09.09.2013.
- /// The name.
- /// The new URL parameter.
+ /// Creates URL parameter.
+ /// Stubbfel, 09.09.2013.
+ /// The name.
+ /// The new URL parameter.
private List CreateUrlParameter(string name)
{
List parameterList = new List();
@@ -77,24 +78,24 @@ namespace CampusAppWP8.Pages.Person
return parameterList;
}
- /// API is fail.
- /// Stubbfel, 09.09.2013.
+ /// API is fail.
+ /// Stubbfel, 09.09.2013.
private void ApiIsFail()
{
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoad);
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
}
- /// API is ready.
- /// Stubbfel, 09.09.2013.
+ /// API is ready.
+ /// Stubbfel, 09.09.2013.
private void ApiIsReady()
{
this.SetupResultBox();
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
}
- /// Sets up the result box.
- /// Stubbfel, 09.09.2013.
+ /// Sets up the result box.
+ /// Stubbfel, 09.09.2013.
private void SetupResultBox()
{
this.api.Model.RemoveNonFunctionAndSetIdsPerson();
@@ -105,10 +106,10 @@ namespace CampusAppWP8.Pages.Person
}
}
- /// Event handler. Called by Button for click events.
- /// Stubbfel, 09.09.2013.
- /// Source of the event.
- /// Routed event information.
+ /// Event handler. Called by Button for click events.
+ /// Stubbfel, 09.09.2013.
+ /// Source of the event.
+ /// Routed event information.
private void Button_Click(object sender, RoutedEventArgs e)
{
AddPersonButton btn = sender as AddPersonButton;
@@ -144,20 +145,23 @@ namespace CampusAppWP8.Pages.Person
saveContactTask.Show();
}
+ /// Event handler. Called by SearchName for key down events.
+ /// Stubbfel, 15.10.2013.
+ /// Source of the event.
+ /// Key event information.
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();
}
}
- ///
- /// Method is called when the selection in the listbox is changed.
- ///
- /// listbox object.
- /// event args.
+ /// Method is called when the selection in the ListBox is changed.
+ /// Stubbfel, 15.10.2013.
+ /// ListBox object.
+ /// event args.
private void Box_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
{
(sender as ListBox).SelectedIndex = -1;
diff --git a/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/PlaceNews.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/PlaceNews.xaml.cs
index e4a529f5..0bd1f127 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/PlaceNews.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/PlaceNews.xaml.cs
@@ -1,16 +1,17 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 09.09.2013
-//----------------------------------------------------------------------
-
+// Stubbfel
+// 15.10.2013
+// Implements the place news.xaml class
+//-----------------------------------------------------------------------
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;
- /// Place news.
- /// Stubbfel, 09.09.2013.
+ /// Place news.
+ /// Stubbfel, 09.09.2013.
+ ///
public partial class PlaceNews : PhoneApplicationPage
{
#region Member
- /// The sps API.
+
+ /// The device.
+ private readonly ProximityDevice device = ProximityDevice.GetDefault();
+
+ /// The sps API.
private SpsApi spsApi;
- /// The pis API.
+ /// The pis API.
private PisApi pisApi;
- /// The pss API.
+ /// The pss API.
private PssApi pssApi;
- /// The places.
+ /// The places.
private PlacesFile places;
- /// variable indicates how many apis are running.
+ /// variable indicates how many apis are running.
private int waitForApi;
- /// true to force request.
+ /// true to force request.
private bool forceRequest;
- /// List of search pids.
+ /// List of search pids.
private List searchPidList;
+ /// true to qr scan.
private bool qrScan = false;
- /// The device.
- private readonly ProximityDevice device = ProximityDevice.GetDefault();
-
#endregion
#region Constructor
- /// Initializes a new instance of the PlaceNews class.
- /// Stubbfel, 09.09.2013.
+ /// Initializes a new instance of the PlaceNews class.
+ /// Stubbfel, 09.09.2013.
public PlaceNews()
{
this.InitializeComponent();
@@ -76,9 +78,9 @@ namespace CampusAppWP8.Pages.PlaceNews
#region protected
- /// Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.
- /// Stubbfel, 09.09.2013.
- /// Ein Objekt, das die Ereignisdaten enthält.
+ /// Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.
+ /// Stubbfel, 09.09.2013.
+ ///
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
@@ -91,9 +93,9 @@ namespace CampusAppWP8.Pages.PlaceNews
this.places.Model = App.LoadFromIsolatedStorage(Constants.IsolatedStorage_AllPlaces);
}
- if (qrScan)
+ if (this.qrScan)
{
- qrScan = false;
+ this.qrScan = false;
string qrResult = App.LoadFromIsolatedStorage("PlaceNewsQCCode");
App.SaveToIsolatedStorage("PlaceNewsQCCode", null);
@@ -108,7 +110,6 @@ namespace CampusAppWP8.Pages.PlaceNews
{
this.SetupResultBox();
}
-
}
else
{
@@ -124,8 +125,8 @@ namespace CampusAppWP8.Pages.PlaceNews
///
/// Wird aufgerufen, wenn eine Seite nicht mehr die aktive Seite in einem Frame ist.
///
- /// Stubbfel, 09.09.2013.
- /// Ein Objekt, das die Ereignisdaten enthält.
+ /// Stubbfel, 09.09.2013.
+ ///
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
if (NavigationMode.Back == e.NavigationMode)
@@ -138,8 +139,8 @@ namespace CampusAppWP8.Pages.PlaceNews
#region private
- /// Initializes the API.
- /// Stubbfel, 09.09.2013.
+ /// Initializes the API.
+ /// Stubbfel, 09.09.2013.
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
}
}
- /// Places file is fail.
- /// Stubbfel, 09.09.2013.
+ /// Places file is fail.
+ /// Stubbfel, 09.09.2013.
private void PlacesFileIsFail()
{
this.places.Model = new SpsModel();
@@ -212,8 +212,8 @@ namespace CampusAppWP8.Pages.PlaceNews
this.waitForApi++;
}
- /// Places file is ready.
- /// Stubbfel, 09.09.2013.
+ /// Places file is ready.
+ /// Stubbfel, 09.09.2013.
private void PlacesFileIsReady()
{
if (this.spsApi == null)
@@ -228,8 +228,8 @@ namespace CampusAppWP8.Pages.PlaceNews
this.waitForApi++;
}
- /// Pss API is ready.
- /// Stubbfel, 09.09.2013.
+ /// Pss API is ready.
+ /// Stubbfel, 09.09.2013.
private void PssApiIsReady()
{
this.waitForApi--;
@@ -238,8 +238,8 @@ namespace CampusAppWP8.Pages.PlaceNews
this.CheckedSetupResultBox();
}
- /// Pis API is ready.
- /// Stubbfel, 09.09.2013.
+ /// Pis API is ready.
+ /// Stubbfel, 09.09.2013.
private void PisApiIsReady()
{
this.waitForApi--;
@@ -248,8 +248,8 @@ namespace CampusAppWP8.Pages.PlaceNews
this.CheckedSetupResultBox();
}
- /// API is fail.
- /// Stubbfel, 09.09.2013.
+ /// API is fail.
+ /// Stubbfel, 09.09.2013.
private void ApiIsFail()
{
if (this.Dispatcher != null)
@@ -259,25 +259,26 @@ namespace CampusAppWP8.Pages.PlaceNews
}
}
- /// Sps API is ready.
- /// Stubbfel, 09.09.2013.
+ /// Sps API is ready.
+ /// Stubbfel, 09.09.2013.
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();
}
-
- ///
- /// send get request to pis andd pss for PlaceNews service
- ///
- /// list of place id
- private void SendGetPisPssForPlacenews(List pidList) {
+
+ /// send get request to pis and pss for PlaceNews service.
+ /// Stubbfel, 15.10.2013.
+ /// list of place id.
+ private void SendGetPisPssForPlacenews(List pidList)
+ {
List infoNames = new List() { Constants.PisInformationName_Name };
List serviceNames = new List() { Constants.PssServiceName_PlaceNews };
@@ -288,14 +289,13 @@ namespace CampusAppWP8.Pages.PlaceNews
this.SendGetPlaceService(this.searchPidList, serviceNames);
this.CheckedSetupResultBox();
-
}
- ///
- /// Method send get for PlaceInformation of certain places
- ///
- /// list of place id
- /// list of informations name
- /// if its true then force api load
+
+ /// Method send get for PlaceInformation of certain places.
+ /// Stubbfel, 15.10.2013.
+ /// list of place id.
+ /// list of information names.
+ /// (Optional) if its true then force api load.
private void SendGetPlaceInformation(List pidList, List infoNames, bool force = false)
{
if (force || !this.places.Model.ContainsInformationNames(pidList, infoNames))
@@ -306,12 +306,11 @@ namespace CampusAppWP8.Pages.PlaceNews
}
}
- ///
- /// Method send get for PlaceSetvice of certain places
- ///
- /// list of place id
- /// list of service name
- /// if its true then force api load
+ /// Method send get for PlaceService of certain places.
+ /// Stubbfel, 15.10.2013.
+ /// list of place id.
+ /// list of service name.
+ /// (Optional) if its true then force api load.
private void SendGetPlaceService(List pidList, List serviceNames, bool force = false)
{
if (this.forceRequest || !this.places.Model.ContainsServiceNames(pidList, serviceNames))
@@ -322,8 +321,8 @@ namespace CampusAppWP8.Pages.PlaceNews
}
}
- /// Sets up the result box.
- /// Stubbfel, 09.09.2013.
+ /// Sets up the result box.
+ /// Stubbfel, 09.09.2013.
private void SetupResultBox()
{
this.ResultBox.ItemsSource = this.places.Model.FilterByPid(this.searchPidList);
@@ -333,10 +332,10 @@ namespace CampusAppWP8.Pages.PlaceNews
this.forceRequest = false;
}
- /// Event handler. Called by UpdateButtonAppBar for click events.
- /// Stubbfel, 09.09.2013.
- /// Source of the event.
- /// Event information.
+ /// Event handler. Called by UpdateButtonAppBar for click events.
+ /// Stubbfel, 09.09.2013.
+ /// Source of the event.
+ /// Event information.
private void UpdateButtonAppBar_Click(object sender, EventArgs e)
{
this.ProgressBar.Visibility = Visibility.Visible;
@@ -344,8 +343,8 @@ namespace CampusAppWP8.Pages.PlaceNews
thread.Start();
}
- /// Initialises the API current position force.
- /// Stubbfel, 09.09.2013.
+ /// Initialises the API current position force.
+ /// Stubbfel, 09.09.2013.
private void InitApiCurrentPositionForce()
{
Utilities.DetermineAndStoreCurrentPositionForce();
@@ -353,10 +352,10 @@ namespace CampusAppWP8.Pages.PlaceNews
this.InitializeApi();
}
- /// Event handler. Called by ApplicationBarMenuItem for click events.
- /// Stubbfel, 09.09.2013.
- /// Source of the event.
- /// Event information.
+ /// Event handler. Called by ApplicationBarMenuItem for click events.
+ /// Stubbfel, 09.09.2013.
+ /// Source of the event.
+ /// Event information.
private void ApplicationBarMenuItem_Click(object sender, EventArgs e)
{
this.qrScan = true;
@@ -366,18 +365,18 @@ namespace CampusAppWP8.Pages.PlaceNews
this.NavigationService.Navigate(url);
}
- /// Event handler. Called by ApplicationBarMenuItem_Click for 1 events.
- /// Stubbfel, 09.09.2013.
- /// Source of the event.
- /// Event information.
+ /// Event handler. Called by ApplicationBarMenuItem_Click for 1 events.
+ /// Stubbfel, 09.09.2013.
+ /// Source of the event.
+ /// Event information.
private void ApplicationBarMenuItem_Click_1(object sender, EventArgs e)
{
this.ProgressBar.Visibility = Visibility.Visible;
this.device.SubscribeForMessage("NDEF", this.NDEFHandler);
}
- /// Checked setup result box.
- /// Stubbfel, 10.09.2013.
+ /// Checked setup result box.
+ /// Stubbfel, 10.09.2013.
private void CheckedSetupResultBox()
{
if (this.waitForApi < 1)
@@ -395,11 +394,10 @@ namespace CampusAppWP8.Pages.PlaceNews
#endregion
- ///
- /// Method set correct text of the TextBlock
- ///
- /// sender of the event
- /// some args
+ /// Method set correct text of the TextBlock.
+ /// Stubbfel, 15.10.2013.
+ /// sender of the event.
+ /// some args.
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);
}
- /// Handler, called when the ndef.
- /// Stubbfel, 22.08.2013.
- /// The sender.
- /// The message.
+ /// Handler, called when the ndef.
+ /// Stubbfel, 22.08.2013.
+ /// The sender.
+ /// The message.
private void NDEFHandler(ProximityDevice sender, ProximityMessage message)
{
this.device.StopSubscribingForMessage(message.SubscriptionId);
@@ -436,6 +434,7 @@ namespace CampusAppWP8.Pages.PlaceNews
this.searchPidList = new List() { pid };
this.SendGetPisPssForPlacenews(this.searchPidList);
}
+
// this.Dispatcher.BeginInvoke(new Action(() => MessageBox.Show(ndef.GetContent())));
}
#endregion
diff --git a/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/ShowPad.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/ShowPad.xaml.cs
index 31828bcc..d26c4b46 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/ShowPad.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/PlaceNews/ShowPad.xaml.cs
@@ -1,11 +1,11 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 09.09.2013
-//----------------------------------------------------------------------
-
+// Stubbfel
+// 15.10.2013
+// Implements the show pad.xaml class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Pages.PlaceNews
{
using System;
@@ -14,14 +14,15 @@ namespace CampusAppWP8.Pages.PlaceNews
using CampusAppWP8.Resources;
using Microsoft.Phone.Controls;
- /// Show pad.
- /// Stubbfel, 09.09.2013.
+ /// Show pad.
+ /// Stubbfel, 09.09.2013.
+ ///
public partial class ShowPad : PhoneApplicationPage
{
#region Constructor
- /// Initializes a new instance of the ShowPad class.
- /// Stubbfel, 09.09.2013.
+ /// Initializes a new instance of the ShowPad class.
+ /// Stubbfel, 09.09.2013.
public ShowPad()
{
this.InitializeComponent();
@@ -31,9 +32,9 @@ namespace CampusAppWP8.Pages.PlaceNews
#region Method
- /// Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.
- /// Stubbfel, 09.09.2013.
- /// Ein Objekt, das die Ereignisdaten enthält.
+ /// Wird aufgerufen, wenn eine Seite die aktive Seite in einem Frame wird.
+ /// Stubbfel, 09.09.2013.
+ ///
protected override void OnNavigatedTo(NavigationEventArgs e)
{
if (NavigationContext.QueryString.ContainsKey(Constants.ParamPlaceID))
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml.cs
index 9239915d..1537d0a4 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Setting/AppSettingPage.xaml.cs
@@ -1,30 +1,31 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 12.08.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the application setting page.xaml class
+//-----------------------------------------------------------------------
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;
- ///
- /// Class for the AppSettingPage
- ///
+ /// Class for the AppSettingPage.
+ /// Stubbfel, 15.10.2013.
+ ///
public partial class AppSettingPage : PhoneApplicationPage
{
#region Member
+ /// The TagHandler model.
private TagHandlerListPickerItemListModel taghandlerModel;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public AppSettingPage()
{
this.InitializeComponent();
@@ -40,10 +41,9 @@ namespace CampusAppWP8.Pages.Setting
#region Method
- ///
- /// Override the OnNavigatedFrom method
- ///
- /// Arguments of navigation
+ /// Override the OnNavigatedFrom method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
if (NavigationMode.Back == e.NavigationMode)
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Setting/Impressum.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Setting/Impressum.xaml.cs
index 539a75dd..2adc476f 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Setting/Impressum.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Setting/Impressum.xaml.cs
@@ -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;
+//-----------------------------------------------------------------------
+//
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
+//
+// Stubbfel
+// 15.10.2013
+// Implements the impressum.xaml class
+//-----------------------------------------------------------------------
using Microsoft.Phone.Controls;
-using Microsoft.Phone.Shell;
namespace CampusAppWP8.Pages.Setting
{
+ /// An impressum.
+ /// Stubbfel, 15.10.2013.
+ ///
public partial class Impressum : PhoneApplicationPage
{
+ /// Initializes a new instance of the Impressum class.
+ /// Stubbfel, 15.10.2013.
public Impressum()
{
InitializeComponent();
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Setting/UserProfil.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Setting/UserProfil.xaml.cs
index 6436902b..95dcd530 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Setting/UserProfil.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Setting/UserProfil.xaml.cs
@@ -1,10 +1,11 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 23.07.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the user profil.xaml class
+//-----------------------------------------------------------------------
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;
- ///
- /// Class for the UserProfilePage
- ///
+ /// Class for the UserProfilePage.
+ /// Stubbfel, 15.10.2013.
+ ///
public partial class UserProfil : PhoneApplicationPage
{
#region Member
- ///
- /// Reference of the profileFile
- ///
+ /// Reference of the profileFile.
private UserProfilModel userProfil;
- /// List of courses.
+ /// List of courses.
private CourseListPickerItemListWp8Model courseList;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public UserProfil()
{
this.InitializeComponent();
@@ -51,10 +49,9 @@ namespace CampusAppWP8.Pages.Setting
#region protected
- ///
- /// Override the OnNavigatedFrom method
- ///
- /// Arguments of navigation
+ /// Override the OnNavigatedFrom method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
if (NavigationMode.Back == e.NavigationMode)
@@ -67,8 +64,8 @@ namespace CampusAppWP8.Pages.Setting
#region private
- /// Loads list picker.
- /// Stubbfel, 10.09.2013.
+ /// Loads list picker.
+ /// Stubbfel, 10.09.2013.
private void LoadListPicker()
{
this.DefHeader.ProgressVisibility = Visibility.Visible;
@@ -77,9 +74,8 @@ namespace CampusAppWP8.Pages.Setting
this.courseList.LoadCourseList();
}
- ///
- /// Method sets the ItemSource of the ListPickers
- ///
+ /// Method sets the ItemSource of the ListPickers.
+ /// Stubbfel, 15.10.2013.
private void SetupListPickers()
{
DegreeListPickerItemListModel degreeList = new DegreeListPickerItemListModel();
@@ -101,9 +97,8 @@ namespace CampusAppWP8.Pages.Setting
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
}
- ///
- /// Method save the current profile
- ///
+ /// Method save the current profile.
+ /// Stubbfel, 15.10.2013.
private void SaveProfile()
{
try
diff --git a/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs
index 8e0c4389..d7d1ba75 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/StartPage.xaml.cs
@@ -1,22 +1,22 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 21.05.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the start page.xaml class
+//-----------------------------------------------------------------------
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;
- ///
- /// Class for the StartPage
- ///
+ /// Class for the StartPage.
+ /// Stubbfel, 15.10.2013.
+ ///
public partial class StartPage : PhoneApplicationPage
{
#region Member
- /// The device.
+ /// The device.
private readonly ProximityDevice device = ProximityDevice.GetDefault();
- /// List of initialise courses.
+ /// List of initialise courses.
private CourseFeed initCourseList;
+ /// The previous orientation.
private PageOrientation prevOrientation;
+ /// Identifier for the ndef.
+ private long ndefId;
+
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
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
- ///
- /// Methods overrides the OnNavigatedTo-Method
- ///
- /// some NavigationEventArgs
+ /// Methods overrides the OnNavigatedTo-Method.
+ /// Stubbfel, 15.10.2013.
+ ///
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);
}
- ///
- /// Methods overrides the OnNavigatedFrom-Method
- ///
- /// some NavigationEventArgs
+ /// Methods overrides the OnNavigatedFrom-Method.
+ /// Stubbfel, 15.10.2013.
+ ///
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
- /// Stores course feed.
- /// Stubbfel, 10.09.2013.
+ /// Initialises the place file.
+ /// Stubbfel, 15.10.2013.
+ private void InitPlaceFile()
+ {
+ PlacesFile file = new PlacesFile();
+ file.LoadData();
+ }
+
+ /// Stores course feed.
+ /// Stubbfel, 10.09.2013.
private void StoreCourseFeed()
{
this.initCourseList.SaveData();
}
- ///
- /// Method handle OrientationPage
- ///
- /// Caller of the function
- /// some EventArgs
+ /// Method handle OrientationPage.
+ /// Stubbfel, 15.10.2013.
+ /// Caller of the function.
+ /// some EventArgs.
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
}
}
- /// Move to Portrait format.
- /// Stubbfel, 27.08.2013.
+ /// Move to Portrait format.
+ /// Stubbfel, 27.08.2013.
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);
}
- /// Move Grid to landscape format.
- /// Stubbfel, 27.08.2013.
+ /// Move Grid to landscape format.
+ /// Stubbfel, 27.08.2013.
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);
}
- ///
- /// Method Navigate to
- ///
- /// Caller of the function
- /// some EventArgs
+ /// Method Navigate to
+ /// Stubbfel, 15.10.2013.
+ /// Caller of the function.
+ /// some EventArgs.
private void ApplicationBarMenuItem_Click(object sender, EventArgs e)
{
Uri url = new Uri(Constants.PathSetting_User, UriKind.Relative);
NavigationService.Navigate(url);
}
- ///
- /// Method Navigate to
- ///
- /// Caller of the function
- /// some EventArgs
+ /// Method Navigate to
+ /// Stubbfel, 15.10.2013.
+ /// Caller of the function.
+ /// some EventArgs.
private void ApplicationBarMenuItem2_Click(object sender, EventArgs e)
{
Uri url = new Uri(Constants.PathSetting_App, UriKind.Relative);
NavigationService.Navigate(url);
}
- ///
- /// Method Navigate to
- ///
- /// Caller of the function
- /// some EventArgs
+ /// Method Navigate to
+ /// Stubbfel, 15.10.2013.
+ /// Caller of the function.
+ /// some EventArgs.
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);
}
- ///
- /// Event handler. Called by ApplicationBarMenuItem4 for click events.
- ///
- /// Caller of the function.
- /// Event information.
+ /// Event handler. Called by ApplicationBarMenuItem4 for click events.
+ /// Stubbfel, 15.10.2013.
+ /// Caller of the function.
+ /// Event information.
private void ApplicationBarMenuItem3_Click(object sender, EventArgs e)
{
Uri url = new Uri("/Pages/Dev/QRScanner.xaml", UriKind.Relative);
NavigationService.Navigate(url);
}
- ///
- /// Method change the Opacity of the ApplicationBar
- ///
- /// Caller of the function
- /// some EventArgs
+ /// Method change the Opacity of the ApplicationBar.
+ /// Stubbfel, 15.10.2013.
+ /// Caller of the function.
+ /// some EventArgs.
private void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
{
if (e.IsMenuVisible)
@@ -321,17 +316,15 @@ namespace CampusAppWP8.Pages
}
}
- ///
- /// Method show all OptIns
- ///
+ /// Method show all OptIns.
+ /// Stubbfel, 15.10.2013.
private void ShowOptIns()
{
this.GeoWatchOptIN();
}
- ///
- /// Method show the GeoWatchOptIn in a MessageBox
- ///
+ /// Method show the GeoWatchOptIn in a MessageBox.
+ /// Stubbfel, 15.10.2013.
private void GeoWatchOptIN()
{
MessageBoxResult result = MessageBoxes.ShowGoeWatchOptInBox();
@@ -348,6 +341,10 @@ namespace CampusAppWP8.Pages
}
}
+ /// Event handler. Called by PintoStart for click events.
+ /// Stubbfel, 15.10.2013.
+ /// Caller of the function.
+ /// Routed event information.
private void PintoStart_Click(object sender, RoutedEventArgs e)
{
FrameworkElement elment = sender as FrameworkElement;
@@ -404,9 +401,12 @@ namespace CampusAppWP8.Pages
TileCreator.CreatePlaceNewsTile();
break;
}
-
}
+ /// Handler, called when the ndef.
+ /// Stubbfel, 15.10.2013.
+ /// Caller of the function.
+ /// The message.
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);
}
+ /// Go to campus MapPage.
+ /// Stubbfel, 15.10.2013.
+ /// The tag content.
private void GoToCampusMappage(string tagContent)
{
string pid = Wp8StringManager.FilterPlaceIdinNFCResultString(tagContent);
@@ -452,9 +455,10 @@ namespace CampusAppWP8.Pages
{
NavigationService.Navigate(url);
}
-
}
+ /// Shows the btu tag message box.
+ /// Stubbfel, 15.10.2013.
private void ShowBtuTagMessageBox()
{
MessageBoxResult msgResult = MessageBoxes.ShowBtuTagInfoOkCancelMessageBox();
diff --git a/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs
index a1ea39e0..81615043 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/StudentCouncil/StudentCouncilPage.xaml.cs
@@ -1,10 +1,11 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 03.07.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the student council page.xaml class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Pages.StudentCouncil
{
using System;
@@ -16,25 +17,22 @@ namespace CampusAppWP8.Pages.StudentCouncil
using CampusAppWP8.Utility.Lui.MessageBoxes;
using Microsoft.Phone.Controls;
- ///
- /// Class for the StudentCouncilPage
- ///
+ /// Class for the StudentCouncilPage.
+ /// Stubbfel, 15.10.2013.
+ ///
public partial class StudentCouncilPage : PhoneApplicationPage
{
#region Members
- ///
- /// the feed of the StudentCouncil
- ///
+ /// the feed of the StudentCouncil.
private StudentCouncilFeed feed;
#endregion
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public StudentCouncilPage()
{
this.InitializeComponent();
@@ -47,10 +45,9 @@ namespace CampusAppWP8.Pages.StudentCouncil
#region protected
- ///
- /// Override the OnNavigatedTo method
- ///
- /// Arguments of navigation
+ /// Override the OnNavigatedTo method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
@@ -69,19 +66,17 @@ namespace CampusAppWP8.Pages.StudentCouncil
this.feed.LoadData(Utilities.GetLoadModus());
}
- ///
- /// Override the OnNavigatedFrom method
- ///
- /// Arguments of navigation
+ /// Override the OnNavigatedFrom method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
this.feed.SaveData();
}
- ///
- /// Override the OnOrientationChanged method.
- ///
- /// orientation changed args.
+ /// Override the OnOrientationChanged method.
+ /// Stubbfel, 15.10.2013.
+ ///
protected override void OnOrientationChanged(OrientationChangedEventArgs e)
{
if (e.Orientation == PageOrientation.Landscape
@@ -101,9 +96,8 @@ namespace CampusAppWP8.Pages.StudentCouncil
#endregion
#region private
- ///
- /// Method initialize the Feed
- ///
+ /// Method initialize the Feed.
+ /// Stubbfel, 15.10.2013.
private void InitializeFeed()
{
this.feed = new StudentCouncilFeed();
@@ -112,47 +106,43 @@ namespace CampusAppWP8.Pages.StudentCouncil
this.feed.OnFailedFile += new StudentCouncilFeed.OnFailed(this.FeedIsFailFile);
}
- ///
- /// Method will be execute if the feed is ready
- ///
+ /// Method will be execute if the feed is ready.
+ /// Stubbfel, 15.10.2013.
private void FeedIsReady()
{
this.SetupStudentCouncilPivot();
this.DefHeader.ProgressVisibility = System.Windows.Visibility.Collapsed;
}
- ///
- /// Method set ItemSource
- ///
+ /// Method set ItemSource.
+ /// Stubbfel, 15.10.2013.
private void SetupStudentCouncilPivot()
{
this.StudentCouncilPivot.ItemsSource = this.feed.Model.GetStudentCouncilsGroupByFaculty();
}
///
- /// 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.
///
- /// button object
- /// event args
+ /// Stubbfel, 15.10.2013.
+ /// button object.
+ /// event args.
private void StudentForceUpdate_Click(object sender, EventArgs e)
{
this.DefHeader.ProgressVisibility = System.Windows.Visibility.Visible;
this.feed.ForceWebUpdate();
}
- ///
- /// Method will be execute if the feed is failed
- ///
+ /// Method will be execute if the feed is failed.
+ /// Stubbfel, 15.10.2013.
private void FeedIsFailWeb()
{
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadWeb);
this.feed.ForceReadFile();
}
- ///
- /// Method will be execute if the feed is failed
- ///
+ /// Method will be execute if the feed is failed.
+ /// Stubbfel, 15.10.2013.
private void FeedIsFailFile()
{
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Webmail/WebmailPage.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/Webmail/WebmailPage.xaml.cs
index 0344e9d7..af68dc3e 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Webmail/WebmailPage.xaml.cs
+++ b/CampusAppWP8/CampusAppWP8/Pages/Webmail/WebmailPage.xaml.cs
@@ -1,26 +1,26 @@
//-----------------------------------------------------------------------
//
-// Company copyright tag.
+// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
//
-// stubbfel
-// 12.06.2013
-//----------------------------------------------------------------------
+// Stubbfel
+// 15.10.2013
+// Implements the webmail page.xaml class
+//-----------------------------------------------------------------------
namespace CampusAppWP8.Pages.Webmail
{
using System;
using CampusAppWP8.Resources;
using Microsoft.Phone.Controls;
- ///
- /// Class for the WebmailPage
- ///
+ /// Class for the WebmailPage.
+ /// Stubbfel, 15.10.2013.
+ ///
public partial class WebmailPage : PhoneApplicationPage
{
#region Constructor
- ///
- /// Initializes a new instance of the class.
- ///
+ /// Initializes a new instance of the class.
+ /// Stubbfel, 15.10.2013.
public WebmailPage()
{
this.InitializeComponent();
@@ -31,9 +31,8 @@ namespace CampusAppWP8.Pages.Webmail
#region Method
- ///
- /// Method load WebmailPage
- ///
+ /// Method load WebmailPage.
+ /// Stubbfel, 15.10.2013.
private void LoadWebmailPage()
{
this.WebmailBrowser.Navigate(new Uri(Constants.UrlWebMail_Addr, UriKind.Absolute));
diff --git a/CampusAppWP8/CampusAppWP8/Settings.StyleCop b/CampusAppWP8/CampusAppWP8/Settings.StyleCop
index acb474fe..c76ad7db 100644
--- a/CampusAppWP8/CampusAppWP8/Settings.StyleCop
+++ b/CampusAppWP8/CampusAppWP8/Settings.StyleCop
@@ -28,6 +28,13 @@
+
+
+
+ False
+
+
+
BTU/IIT
The MIT License (MIT). Copyright (c) 2013 BTU/IIT.