blob: d65393235402476744281e726a9a7975150ace62 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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);
}
}
}
|