Esempio n. 1
0
 private int ResetUI()
 {
     Refreshing.Visibility      = Visibility.Collapsed;
     ConnectionError.Visibility = Visibility.Collapsed;
     NoResults.Visibility       = Visibility.Collapsed;
     ProgressBar.Hide();
     SetApplicationBarEnabled(true);
     return(0);
 }
Esempio n. 2
0
        private int EndRequest()
        {
            Deployment.Current.Dispatcher.BeginInvoke(() =>
            {
                var applicationBarIconButton = ApplicationBar.Buttons[0] as ApplicationBarIconButton;
                if (applicationBarIconButton != null)
                {
                    applicationBarIconButton.IsEnabled = true;
                }

                ProgressBar.Hide();
            });
            return(0);
        }