From 8918b543de2939a99007577f1a7ec66bf091e74a Mon Sep 17 00:00:00 2001 From: OlgunR Date: Tue, 3 Jun 2025 16:40:17 +0200 Subject: [PATCH] =?UTF-8?q?=C3=9Cberladung=20durch=20optionalen=20Paramete?= =?UTF-8?q?r=20ersetzt=20-=20DocumentViewer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Controls.DocumentViewer/DocumentViewer.vb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Controls.DocumentViewer/DocumentViewer.vb b/Controls.DocumentViewer/DocumentViewer.vb index 2e0e8779..3669daab 100644 --- a/Controls.DocumentViewer/DocumentViewer.vb +++ b/Controls.DocumentViewer/DocumentViewer.vb @@ -89,9 +89,14 @@ Public Class DocumentViewer ''' ''' A LogConfig object ''' The GDPicture.NET License Key - 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 - ''' ''' Load a file from a path and display it '''