This commit is contained in:
Jonathan Jenne
2020-01-24 10:51:03 +01:00
parent 1dfbb2b630
commit 53f3ea4272
2 changed files with 8 additions and 190 deletions

View File

@@ -79,20 +79,16 @@ Public Class DocumentViewer
Exit Sub
End If
_logger.Info("Resetting Viewer.")
GdViewer.ZoomMode = ViewerZoomMode.ZoomModeWidthViewer
GdViewer.DocumentAlignment = ViewerDocumentAlignment.DocumentAlignmentTopCenter
'_logger.Info("Resetting Viewer.")
'GdViewer.ZoomMode = ViewerZoomMode.ZoomModeWidthViewer
'GdViewer.DocumentAlignment = ViewerDocumentAlignment.DocumentAlignmentTopCenter
_logger.Info("Loading File.")
DoLoadFile(filepath)
_logger.Info("Updating UI.")
statusLabel.Text = _docPath
UpdateMainUi()
'_logger.Info("Updating UI.")
'statusLabel.Text = _docPath
' UpdateMainUi()
End Sub
Public Sub CloseDocument()
@@ -194,6 +190,8 @@ Public Class DocumentViewer
End Function
Private Sub UpdateMainUi()
Exit Sub
If GdViewer.PageCount = 0 Then
'btnOpen.Enabled = True
btnPrint.Enabled = False