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); } } }
public LegendDownloadedEventArgs(FileSet.DownloadStatus status) { this.status = status; }