コード例 #1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            NavigationParameter navParam = NavigateService.ProcessQueryString(NavigationContext.QueryString);

            if (navParam == NavigationParameter.Downloads)
            {
                TransfersPivot.SelectedItem = DownloadsPivot;
            }

            if (navParam == NavigationParameter.PictureSelected)
            {
                NavigationService.RemoveBackEntry();
            }

            if (navParam == NavigationParameter.AlbumSelected || navParam == NavigationParameter.SelfieSelected)
            {
                NavigationService.RemoveBackEntry();
                NavigationService.RemoveBackEntry();
            }

            if (!NetworkService.IsNetworkAvailable())
            {
                UpdateGUI(false);
                return;
            }

            // Needed on every UI interaction
            App.MegaSdk.retryPendingConnections();

            TransfersService.UpdateMegaTransfersList(App.MegaTransfers);
            _transfersViewModel.MegaTransfers = App.MegaTransfers;
        }
コード例 #2
0
 private void OnCleanUpTransfersClick(object sender, EventArgs e)
 {
     TransfersService.UpdateMegaTransfersList(App.MegaTransfers);
 }