private void PageLoaded(object sender, RoutedEventArgs e) { try { _workingAccount = App.DataContext.LoadAccount(NavigationContext.QueryString["account"]); _workingAccount.RestoreCredentials(); } catch (Exception) { // should not happen } ApplicationBar = (ApplicationBar)Resources["DefaultAppBar"]; ApplicationBar.TranslateButtons(); FetchStructure(_workingAccount.WebDAVPath); }
private void PageLoaded(object sender, RoutedEventArgs e) { SystemTray.IsVisible = App.DataContext.EnablePhoneStatusBar; try { _workingAccount = App.DataContext.LoadAccount(NavigationContext.QueryString["account"]); _workingAccount.RestoreCredentials(); } catch (Exception) { // should not happen } FetchStructure(_workingAccount.WebDAVPath); }