summaryrefslogtreecommitdiff
path: root/Juick/MainPage.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/MainPage.xaml.cs')
-rw-r--r--Juick/MainPage.xaml.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/Juick/MainPage.xaml.cs b/Juick/MainPage.xaml.cs
index 23418ff..20beef5 100644
--- a/Juick/MainPage.xaml.cs
+++ b/Juick/MainPage.xaml.cs
@@ -1,12 +1,8 @@
using System;
using System.Collections.Generic;
-using System.Text;
using System.Windows;
-using System.Windows.Controls;
using System.Windows.Data;
-using Juick.Controls;
using Microsoft.Phone.Controls;
-using Microsoft.Phone.Notification;
using Microsoft.Phone.Shell;
using Juick.ViewModels;
using RestSharp;
@@ -76,6 +72,12 @@ namespace Juick
{
NavigationService.Navigate(new Uri(navigateUri, UriKind.Relative));
}
+ if (queryStrings.ContainsKey("mid"))
+ {
+ var mid = queryStrings["mid"];
+ navigateUri = string.Format("/ThreadView.xaml?mid={0}", mid);
+ ((App)Application.Current).NavigateTo(new Uri(navigateUri, UriKind.Relative), true);
+ }
App.AppContext.Client.Authenticator = new HttpBasicAuthenticator(App.AppContext.Account.UserName, App.AppContext.Account.Password);
}