summaryrefslogtreecommitdiff
path: root/Juick/MainPage.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/MainPage.xaml.cs')
-rw-r--r--Juick/MainPage.xaml.cs14
1 files changed, 3 insertions, 11 deletions
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();