internal static void Reinit()
        {
            PdfFiles.Clear();
            ZipFiles.Clear();

            var pdfMimeTypes = MimeTypeId.Pdf.GetMimeTypes();

            for (var i = 0; i < InitialPdfCount; i++)
            {
                PdfFiles.Add(new UploadedFileInfo
                {
                    Content  = null,
                    Name     = string.Format("PdfFile{0}", i),
                    MimeType = pdfMimeTypes[0],
                    Size     = 1024
                });
            }

            var zipMimeTypes = MimeTypeId.Zip.GetMimeTypes();

            for (var i = 0; i < InitialZipCount; i++)
            {
                ZipFiles.Add(new UploadedFileInfo
                {
                    Name     = string.Format("ZipFile{0}", i),
                    Content  = null,
                    MimeType = zipMimeTypes[0],
                    Size     = 1024
                });
            }
        }
예제 #2
0
        public PdfFile LoadLatestMerge()
        {
            if (LatestMergedFile == null)
            {
                return(null);
            }

            PdfFiles.Clear();
            return(AddPdf(LatestMergedFile));
        }
 private void OnRemoveFileCmdExecute()
 {
     PdfFiles.Clear();
     SelectedFile            = null;
     ValidationModeRequested = ValidationMode.None;
 }