diff options
author | Vitaly Takmazov | 2013-04-05 16:57:42 +0400 |
---|---|---|
committer | Vitaly Takmazov | 2013-04-05 16:57:42 +0400 |
commit | 0f5b520aa44faedbdbab4cdc1020384e9720fe8d (patch) | |
tree | c993d0fb14d461cfdbf1cdb05bcacbed3603b301 /Juick/MainPage.xaml.cs | |
parent | bf9b49e65ae46044a5bb96dbec8b59e34b5b368c (diff) |
ThreadView progressIndicator, small fixes
Diffstat (limited to 'Juick/MainPage.xaml.cs')
-rw-r--r-- | Juick/MainPage.xaml.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Juick/MainPage.xaml.cs b/Juick/MainPage.xaml.cs index 1c76ee1..b37bd8f 100644 --- a/Juick/MainPage.xaml.cs +++ b/Juick/MainPage.xaml.cs @@ -67,7 +67,6 @@ namespace Juick Loaded += (o, args) =>
{
- Pages.SelectedIndex = 0;
var progressIndicator = SystemTray.ProgressIndicator;
if (progressIndicator != null)
@@ -88,6 +87,9 @@ namespace Juick BindingOperations.SetBinding(
progressIndicator, ProgressIndicator.IsIndeterminateProperty, binding);
+ if (App.AppContext.Account.IsAuthenticated)
+ foreach (var page in ((AppViewModel)DataContext).Pages)
+ page.RefreshData();
};
}
@@ -113,10 +115,7 @@ namespace Juick {
NavigationService.Navigate(new Uri(navigateUri, UriKind.Relative));
}
- App.AppContext.Client.Authenticator = new HttpBasicAuthenticator(App.AppContext.Account.UserName, App.AppContext.Account.Password);
- if (App.AppContext.Account.IsAuthenticated)
- foreach (var page in ((AppViewModel)DataContext).Pages)
- page.RefreshData();
+ App.AppContext.Client.Authenticator = new HttpBasicAuthenticator(App.AppContext.Account.UserName, App.AppContext.Account.Password);
}
|