43 lines
1.5 KiB
C#
43 lines
1.5 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.UrlLectureModulBaseAddr" />
|
|
/// </summary>
|
|
public partial class ModulWebPage : PhoneApplicationPage
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ModulWebPage" /> class.
|
|
/// </summary>
|
|
public ModulWebPage()
|
|
{
|
|
this.InitializeComponent();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Override the OnNavigatedTo method
|
|
/// </summary>
|
|
/// <param name="e">Arguments of navigation</param>
|
|
protected override void OnNavigatedTo(NavigationEventArgs e)
|
|
{
|
|
if (NavigationContext.QueryString.ContainsKey(Constants.ParamLectureModulNumber))
|
|
{
|
|
string number = NavigationContext.QueryString[Constants.ParamLectureModulNumber];
|
|
this.WebmailBrowser.Navigate(new Uri(Constants.UrlLectureModulBaseAddr + number, UriKind.Absolute));
|
|
}
|
|
|
|
base.OnNavigatedTo(e);
|
|
}
|
|
}
|
|
} |