Пример #1
0
 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);
 }
Пример #2
0
        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);
        }