Esempio n. 1
0
        public static async Task <bool> DownloadAndSaveLegend()
        {
            if (await DownloadAndVerifyLegend() == FileSet.DownloadStatus.Downloaded)
            {
                LegendDownloaded(null, new LegendDownloadedEventArgs(FileSet.DownloadStatus.Downloaded));
                return(true);
            }
            else
            {
                FileSet.DownloadStatus status = await DownloadAndVerifyLegend();

                LegendDownloaded(null, new LegendDownloadedEventArgs(status));
                if (status == FileSet.DownloadStatus.Downloaded)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
        }
Esempio n. 2
0
 public LegendDownloadedEventArgs(FileSet.DownloadStatus status)
 {
     this.status = status;
 }