Ejemplo n.º 1
0
        private async void vw1_Navigating(object sender, WebNavigatingEventArgs e)
        {
            if (e.Url.Contains("frmAssessAssignView"))
            {
                progressBar.Progress = 0.1;
                Device.StartTimer(TimeSpan.FromSeconds(1), () => {
                    if (progressBar.Progress <= 1)
                    {
                        progressBar.ProgressTo(progressBar.Progress + 0.1, 5000, Easing.Linear);
                        return(true);
                    }
                    return(false);
                });

                if (vw1.IsVisible == false)
                {
                    activity_indicator.IsVisible = true;
                }
                var lst = vw1.Cookies.GetCookies(new Uri(e.Url)).GetAllCookies().ToList();
                //var lst = vw1.Cookies.GetAllCookies().ToList();
                var str1 = myUtils.MakeCSV(lst.Select(x => x.Name).ToList(), ",");
                var cnt  = vw1.Cookies.Count;
                Trace.WriteLine("Going to: " + e.Url + ", Cookie count: " + cnt + ", Values=" + str1);
            }
            else if (e.Url.Contains("blob.core.windows.net"))
            {
                GeneralUtils.DownloadFile(e.Url);
                return;
            }
            else
            {
                e.Cancel = true;
                await RSNavigationPage.Instance.PopAsync();
            }
        }
Ejemplo n.º 2
0
 private async void TapGestureRecognizer_Tapped(object sender, EventArgs e)
 {
     GeneralUtils.DownloadFile(downloadFile);
 }
Ejemplo n.º 3
0
 private async void Ctl_DocumentSaveInitiated(object sender, Syncfusion.SfPdfViewer.XForms.DocumentSaveInitiatedEventArgs e)
 {
     GeneralUtils.DownloadFile(downloadFile);
 }