public static async Task DownloadDocumentsAsync(PdfDocEntity pdfDocEntity) { var stream = await RestApiHelper.DownloadFileAsync(pdfDocEntity.Url); if (stream == null) { return; } await SaveFileAsync(pdfDocEntity.FileName, stream); }
public PdfDocumentView(PdfDocEntity pdfDocEntity) { InitializeComponent(); Title = pdfDocEntity.FileName; _pdfDocEntity = pdfDocEntity; }