From 7d98c0b7de38999cfc0b81540d0ce425c7a0e15e Mon Sep 17 00:00:00 2001 From: k0st1x Date: Sat, 26 Dec 2015 01:11:34 +0300 Subject: migrate to WNS --- Juick/MainPage.xaml.cs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'Juick/MainPage.xaml.cs') diff --git a/Juick/MainPage.xaml.cs b/Juick/MainPage.xaml.cs index 4da88ec..f85ec97 100644 --- a/Juick/MainPage.xaml.cs +++ b/Juick/MainPage.xaml.cs @@ -1,11 +1,8 @@ using System; -using System.Collections.Generic; -using System.Windows; using System.Windows.Data; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; -using Juick.ViewModels; -using RestSharp; +using RestSharp.Authenticators; namespace Juick { @@ -15,11 +12,8 @@ namespace Juick public MainPage() { // Holds the push channel that is created or found. - - InitializeComponent(); - DataContext = App.AppContext; Loaded += (o, args) => @@ -52,12 +46,10 @@ namespace Juick } protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) - { - App.AppContext.Client.Authenticator = new HttpBasicAuthenticator(App.AppContext.Account.UserName, App.AppContext.Account.Password); + { + App.AppContext.Client.Authenticator = new HttpBasicAuthenticator(App.AppContext.Account.UserName, App.AppContext.Account.Password); } - - private void ApplicationBarIconButtonClick(object sender, EventArgs e) { App.AppContext.Pages[Pages.SelectedIndex].Items.Clear(); -- cgit v1.2.3