DocumentViewer Update GD Picture

This commit is contained in:
Developer01
2025-05-16 09:16:53 +02:00
parent 80b583ca55
commit 9a23ccfcc5
4 changed files with 210 additions and 13 deletions

View File

@@ -90,14 +90,14 @@ Public Class DocumentViewer
''' </summary>
''' <param name="pLogConfig">A LogConfig object</param>
''' <param name="pLicenseKey">The GDPicture.NET License Key</param>
Private Function Init(pLogConfig As LogConfig, pLicenseKey As String, pToolbarSettings As ToolbarSettings) As Boolean
Public Function Init(pLogConfig As LogConfig, pLicenseKey As String, pToolbarSettings As ToolbarSettings) As Boolean
_logConfig = pLogConfig
_logger = pLogConfig.GetLogger()
Try
_email = New Email2(pLogConfig)
If pLicenseKey = String.Empty Then
_logger.Warn("License key was not provided. File [{0}] not loaded.", FileName)
_logger.Warn("License key was not provided during init!")
Return False
End If
_licenseKey = pLicenseKey
@@ -115,9 +115,9 @@ Public Class DocumentViewer
End Try
End Function
Public Function Init(pLogConfig As LogConfig, pLicenseKey As String) As Boolean
Return Init(pLogConfig, pLicenseKey, New ToolbarSettings())
End Function
'Public Function Init(pLogConfig As LogConfig, pLicenseKey As String, pToolbarSettings As ToolbarSettings) As Boolean
' Return Init(pLogConfig, pLicenseKey, New ToolbarSettings())
'End Function
''' <summary>
''' Load a file from a path and display it