From 53f3ea4272799e65641084cca21335eee6db2a0e Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Fri, 24 Jan 2020 10:51:03 +0100 Subject: [PATCH] test --- Controls.DocumentViewer/DocumentViewer.vb | 18 +- .../DocumentViewer.vbproj.bak | 180 ------------------ 2 files changed, 8 insertions(+), 190 deletions(-) delete mode 100644 Controls.DocumentViewer/DocumentViewer.vbproj.bak diff --git a/Controls.DocumentViewer/DocumentViewer.vb b/Controls.DocumentViewer/DocumentViewer.vb index 17c38b10..35668297 100644 --- a/Controls.DocumentViewer/DocumentViewer.vb +++ b/Controls.DocumentViewer/DocumentViewer.vb @@ -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 diff --git a/Controls.DocumentViewer/DocumentViewer.vbproj.bak b/Controls.DocumentViewer/DocumentViewer.vbproj.bak deleted file mode 100644 index 99d39398..00000000 --- a/Controls.DocumentViewer/DocumentViewer.vbproj.bak +++ /dev/null @@ -1,180 +0,0 @@ - - - - - Debug - AnyCPU - {0958CDDF-4A16-41F6-8837-8335F71D599C} - Library - - - DigitalData.Controls.DocumentViewer - DigitalData.Controls.DocumentViewer - 512 - Windows - v4.6.1 - true - - - AnyCPU - true - full - true - true - bin\Debug\ - DigitalData.Controls.DocumentViewer.xml - 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 - - - AnyCPU - pdbonly - false - true - true - bin\Release\ - DigitalData.Controls.DocumentViewer.xml - 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 - - - On - - - Binary - - - Off - - - On - - - - - - - - - - - - - - - - D:\ProgramFiles\GdPicture.NET 14\Redist\GdPicture.NET (.NET Framework 4.5)\GdPicture.NET.14.dll - - - P:\Projekte DIGITAL DATA\DIGITAL DATA - Entwicklung\DLL_Bibliotheken\Independentsoft.Msg.dll - - - - ..\packages\NLog.4.6.7\lib\net45\NLog.dll - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - DocumentViewer.vb - - - UserControl - - - frmViewerPrint.vb - - - Form - - - frmViewerSettings.vb - - - Form - - - - True - Application.myapp - - - True - True - Resources.resx - - - True - Settings.settings - True - - - - - DocumentViewer.vb - - - frmViewerPrint.vb - - - frmViewerSettings.vb - - - - VbMyResourcesResXFileCodeGenerator - Resources.Designer.vb - My.Resources - Designer - - - - - MyApplicationCodeGenerator - Application.Designer.vb - - - SettingsSingleFileGenerator - My - Settings.Designer.vb - - - - - - - {903B2D7D-3B80-4BE9-8713-7447B704E1B0} - Logging - - - - \ No newline at end of file