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; }
private void OnCleanUpTransfersClick(object sender, EventArgs e) { TransfersService.UpdateMegaTransfersList(App.MegaTransfers); }