示例#1
0
        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;
        }
示例#2
0
        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();
        }
示例#3
0
        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));
        }
示例#4
0
        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));
        }
示例#5
0
        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));
        }