51 lines
1.6 KiB
C#
51 lines
1.6 KiB
C#
//-----------------------------------------------------------------------
|
|
// <copyright file="ModulWebPage.xaml.cs" company="BTU/IIT">
|
|
// Company copyright tag.
|
|
// </copyright>
|
|
// <author>stubbfel</author>
|
|
// <sience>11.06.2013</sience>
|
|
//----------------------------------------------------------------------
|
|
namespace CampusAppWP8.Pages.Lecture
|
|
{
|
|
using System;
|
|
using System.Windows.Navigation;
|
|
using CampusAppWP8.Resources;
|
|
using Microsoft.Phone.Controls;
|
|
|
|
/// <summary>
|
|
/// Class for the page which shows Webpages from the BaseAddress <see cref="Constants.UrlLecture_ModulBaseAddr" />
|
|
/// </summary>
|
|
public partial class ModulWebPage : PhoneApplicationPage
|
|
{
|
|
#region Constructor
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ModulWebPage" /> class.
|
|
/// </summary>
|
|
public ModulWebPage()
|
|
{
|
|
this.InitializeComponent();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Method
|
|
|
|
/// <summary>
|
|
/// Override the OnNavigatedTo method
|
|
/// </summary>
|
|
/// <param name="e">Arguments of navigation</param>
|
|
protected override void OnNavigatedTo(NavigationEventArgs e)
|
|
{
|
|
if (NavigationContext.QueryString.ContainsKey(Constants.ParamModelLecture_ModulNumber))
|
|
{
|
|
string number = NavigationContext.QueryString[Constants.ParamModelLecture_ModulNumber];
|
|
this.WebmailBrowser.Navigate(new Uri(Constants.UrlLecture_ModulBaseAddr + number, UriKind.Absolute));
|
|
}
|
|
|
|
base.OnNavigatedTo(e);
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
} |