Überladung durch optionalen Parameter ersetzt - DocumentViewer

This commit is contained in:
OlgunR 2025-06-03 16:40:17 +02:00
parent bf2570d89f
commit 8918b543de

View File

@ -89,9 +89,14 @@ Public Class DocumentViewer
''' </summary> ''' </summary>
''' <param name="pLogConfig">A LogConfig object</param> ''' <param name="pLogConfig">A LogConfig object</param>
''' <param name="pLicenseKey">The GDPicture.NET License Key</param> ''' <param name="pLicenseKey">The GDPicture.NET License Key</param>
Public Function Init(pLogConfig As LogConfig, pLicenseKey As String, pToolbarSettings As ToolbarSettings) As Boolean Public Function Init(pLogConfig As LogConfig, pLicenseKey As String, Optional pToolbarSettings As ToolbarSettings = Nothing) As Boolean
_logConfig = pLogConfig _logConfig = pLogConfig
_logger = pLogConfig.GetLogger() _logger = pLogConfig.GetLogger()
If pToolbarSettings Is Nothing Then
pToolbarSettings = New ToolbarSettings
End If
Try Try
_email = New Email2(pLogConfig) _email = New Email2(pLogConfig)
@ -114,10 +119,6 @@ Public Class DocumentViewer
End Try End Try
End Function 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> ''' <summary>
''' Load a file from a path and display it ''' Load a file from a path and display it
''' </summary> ''' </summary>