From 9252e0da67df741fa9212269434087689fb3f01e Mon Sep 17 00:00:00 2001 From: vitalyster Date: Tue, 9 Oct 2012 23:23:43 +0400 Subject: remove crap from relative URLs --- Juick/MainPage.xaml.cs | 2 +- Juick/ThreadView.xaml.cs | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'Juick') diff --git a/Juick/MainPage.xaml.cs b/Juick/MainPage.xaml.cs index 43a2327..6ea6e04 100644 --- a/Juick/MainPage.xaml.cs +++ b/Juick/MainPage.xaml.cs @@ -157,7 +157,7 @@ namespace Juick return; // Navigate to the new page - NavigationService.Navigate(new Uri(string.Format("/ThreadView.xaml?mid={0}&last=true", App.LastView.Items[((ListBox)sender).SelectedIndex].MID), UriKind.Relative)); + NavigationService.Navigate(new Uri(string.Format("/ThreadView.xaml?mid={0}", App.LastView.Items[((ListBox)sender).SelectedIndex].MID), UriKind.Relative)); // Reset selected index to -1 (no selection) ((ListBox)sender).SelectedIndex = -1; diff --git a/Juick/ThreadView.xaml.cs b/Juick/ThreadView.xaml.cs index eac9813..958efe2 100644 --- a/Juick/ThreadView.xaml.cs +++ b/Juick/ThreadView.xaml.cs @@ -22,16 +22,9 @@ namespace Juick protected override void OnNavigatedTo(NavigationEventArgs e) { string _mid = ""; - string _last = ""; - bool last = false; - if (NavigationContext.QueryString.TryGetValue("last", out _last)) - { - last = bool.Parse(_last); - } if (NavigationContext.QueryString.TryGetValue("mid", out _mid)) { - int MID = int.Parse(_mid); - Model.Mid = last ? App.LastView.Items.Single(i => i.MID == MID).MID : App.MyFeedView.Items.Single(i => i.MID == MID).MID; + Model.Mid = int.Parse(_mid); Model.LoadData(); } } -- cgit v1.2.3