diff options
author | Vitaly Takmazov | 2012-02-11 22:22:50 +0400 |
---|---|---|
committer | Vitaly Takmazov | 2012-02-11 22:22:50 +0400 |
commit | 49eb44f852ab21e72c17bbc436ffa79525a1aba3 (patch) | |
tree | 249cd1d69dc8078104dc2bc35cfcbbce98cd85f4 /Juick/LoginView.xaml.cs |
v 0.999 :)
Diffstat (limited to 'Juick/LoginView.xaml.cs')
-rw-r--r-- | Juick/LoginView.xaml.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Juick/LoginView.xaml.cs b/Juick/LoginView.xaml.cs new file mode 100644 index 0000000..d653932 --- /dev/null +++ b/Juick/LoginView.xaml.cs @@ -0,0 +1,35 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net;
+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
+{
+ public partial class LoginView : PhoneApplicationPage
+ {
+ public LoginView()
+ {
+ InitializeComponent();
+ DataContext = App.Account.Credentials;
+ }
+
+ private void button1_Click(object sender, RoutedEventArgs e)
+ {
+ App.Account.SignIn(this, textBox1.Text, textBox2.Password);
+ }
+
+ private void button2_Click(object sender, RoutedEventArgs e)
+ {
+ App.Account.SignOut(this);
+ }
+ }
+}
\ No newline at end of file |