|
@@ -48,6 +48,7 @@ namespace PDFViewer
|
|
|
Thread.CurrentThread.CurrentCulture = new CultureInfo(CurrentCulture);
|
|
|
base.OnStartup(e);
|
|
|
LicenseVerify();
|
|
|
+ HistoryFile(@"TestFile\ComPDFKit_Sample_File_Windows.pdf");
|
|
|
FileHistoryHelper<PDFFileInfo>.Instance.LoadHistory();
|
|
|
}
|
|
|
|
|
@@ -59,16 +60,7 @@ namespace PDFViewer
|
|
|
LicenseErrorCode verifyResult = CPDFSDKVerifier.LicenseVerify("license_key_windows.txt", true);
|
|
|
return (verifyResult != LicenseErrorCode.E_LICENSE_SUCCESS);
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- public class FilePathList : List<string>
|
|
|
- {
|
|
|
- public new void Add(string item)
|
|
|
- {
|
|
|
- base.Add(item);
|
|
|
- HistoryFile(item);
|
|
|
- }
|
|
|
-
|
|
|
+
|
|
|
private void HistoryFile(string item)
|
|
|
{
|
|
|
PDFFileInfo fileInfo = new PDFFileInfo();
|
|
@@ -80,6 +72,14 @@ namespace PDFViewer
|
|
|
FileHistoryHelper<PDFFileInfo>.Instance.SaveHistory();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public class FilePathList : List<string>
|
|
|
+ {
|
|
|
+ public new void Add(string item)
|
|
|
+ {
|
|
|
+ base.Add(item);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
public class ResourceConverter : IValueConverter
|
|
|
{
|