예제 #1
0
        public static async Task DownloadDocumentsAsync(PdfDocEntity pdfDocEntity)
        {
            var stream = await RestApiHelper.DownloadFileAsync(pdfDocEntity.Url);

            if (stream == null)
            {
                return;
            }
            await SaveFileAsync(pdfDocEntity.FileName, stream);
        }
예제 #2
0
 public PdfDocumentView(PdfDocEntity pdfDocEntity)
 {
     InitializeComponent();
     Title         = pdfDocEntity.FileName;
     _pdfDocEntity = pdfDocEntity;
 }