summaryrefslogtreecommitdiff
path: root/Juick/LoginView.xaml.cs
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2012-07-19 01:02:53 +0400
committerGravatar Vitaly Takmazov2012-07-19 01:03:49 +0400
commita1fa40ff966fb45cb92a6f320872da7006660b2c (patch)
treeea4c211c6d65965f4eb3190e348a10c785f9290c /Juick/LoginView.xaml.cs
parent0cee82c8ca334ce1b0286b448ecc2aecb0f1ff85 (diff)
LoginView: fix backstack issue
Diffstat (limited to 'Juick/LoginView.xaml.cs')
-rw-r--r--Juick/LoginView.xaml.cs18
1 files changed, 4 insertions, 14 deletions
diff --git a/Juick/LoginView.xaml.cs b/Juick/LoginView.xaml.cs
index d653932..43aa8f7 100644
--- a/Juick/LoginView.xaml.cs
+++ b/Juick/LoginView.xaml.cs
@@ -1,15 +1,5 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net;
+using System.Linq;
using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-using Juick.Classes;
using Microsoft.Phone.Controls;
namespace Juick
@@ -26,10 +16,10 @@ namespace Juick
{
App.Account.SignIn(this, textBox1.Text, textBox2.Password);
}
-
- private void button2_Click(object sender, RoutedEventArgs e)
+ private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
{
- App.Account.SignOut(this);
+ while (NavigationService.BackStack.Any())
+ NavigationService.RemoveBackEntry();
}
}
} \ No newline at end of file