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 '''