summaryrefslogtreecommitdiff
path: root/Juick/LoginView.xaml.cs
diff options
context:
space:
mode:
authorGravatar vitalyster2012-10-15 00:58:48 +0400
committerGravatar vitalyster2012-10-15 00:58:48 +0400
commit1ebf0adc26fd3377b50aacaed798f9866a7ea2eb (patch)
tree6fc54fe6e62ae68c2bc22c61a41f7b907cbca54f /Juick/LoginView.xaml.cs
parent04736e99cac9969bd212bba7a2e8cd35e7ef1cd5 (diff)
Photos_Extra_Share, attach image in original size, reformat code
Diffstat (limited to 'Juick/LoginView.xaml.cs')
-rw-r--r--Juick/LoginView.xaml.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/Juick/LoginView.xaml.cs b/Juick/LoginView.xaml.cs
index 43aa8f7..5e86959 100644
--- a/Juick/LoginView.xaml.cs
+++ b/Juick/LoginView.xaml.cs
@@ -1,6 +1,7 @@
using System.Linq;
using System.Windows;
using Microsoft.Phone.Controls;
+using System;
namespace Juick
{
@@ -12,9 +13,18 @@ namespace Juick
DataContext = App.Account.Credentials;
}
+ private Uri nextUri;
+
+ protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
+ {
+ nextUri = NavigationContext.QueryString.ContainsKey("FileId") ?
+ new Uri(string.Format("/NewPostView.xaml?FileId={0}", NavigationContext.QueryString["FileId"]), UriKind.Relative)
+ : new Uri("/MainPage.xaml", UriKind.Relative);
+ }
+
private void button1_Click(object sender, RoutedEventArgs e)
{
- App.Account.SignIn(this, textBox1.Text, textBox2.Password);
+ App.Account.SignIn(this, textBox1.Text, textBox2.Password, nextUri);
}
private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
{