protected override void OnNavigatedTo( bool cancelled, NavigationEventArgs e) { if (cancelled) return; _download = new DownloadHandler(this, NavigationContext.QueryString["folder"]); _download.Completed += _download_Completed; _download.NavigationFailed += _download_NavigationFailed; }
protected override void OnNavigatedTo( bool cancelled, NavigationEventArgs e) { if (cancelled) { return; } _download = new DownloadHandler(this, NavigationContext.QueryString["folder"]); _download.Completed += _download_Completed; _download.LinksDetected += _download_LinksDetected; LoadQueries(); }
protected override void OnNavigatedTo( bool cancelled, NavigationEventArgs e) { if (cancelled) return; _download = new DownloadHandler(this, NavigationContext.QueryString["folder"]); _download.Completed += _download_Completed; _download.NavigationFailed += _download_Completed; var pars = NavigationContext.QueryString; _credentials = WebUtils.CreateCredentials( pars["user"], pars["password"], pars["domain"]); var links = pars["l"]; ThreadPool.QueueUserWorkItem( _ => DisplayLinks(links)); }
protected override void OnNavigatedTo( bool cancelled, NavigationEventArgs e) { if (cancelled) return; if (!WebLinks.HasData) { NavigationService.GoBack(); return; } _download = new DownloadHandler( this, WebLinks.Folder); _download.Completed += _download_Completed; _download.LinksDetected += _download_LinksDetected; ThreadPool.QueueUserWorkItem( _ => DisplayLinks(WebLinks.Links)); }
protected override void OnNavigatedTo( bool cancelled, NavigationEventArgs e) { if (cancelled) { return; } if (!WebLinks.HasData) { NavigationService.GoBack(); return; } _download = new DownloadHandler( this, WebLinks.Folder); _download.Completed += _download_Completed; _download.LinksDetected += _download_LinksDetected; ThreadPool.QueueUserWorkItem( _ => DisplayLinks(WebLinks.Links)); }