Überladung durch optionalen Parameter ersetzt - DocumentViewer
This commit is contained in:
parent
bf2570d89f
commit
8918b543de
@ -89,9 +89,14 @@ Public Class DocumentViewer
|
||||
''' </summary>
|
||||
''' <param name="pLogConfig">A LogConfig object</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
|
||||
_logger = pLogConfig.GetLogger()
|
||||
|
||||
If pToolbarSettings Is Nothing Then
|
||||
pToolbarSettings = New ToolbarSettings
|
||||
End If
|
||||
|
||||
Try
|
||||
|
||||
_email = New Email2(pLogConfig)
|
||||
@ -114,10 +119,6 @@ Public Class DocumentViewer
|
||||
End Try
|
||||
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
|
||||
''' </summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user