This commit is contained in:
Jonathan Jenne
2019-08-05 16:32:47 +02:00
parent 926801f7ba
commit 16ac706a6e
30 changed files with 1145 additions and 1062 deletions

View File

@@ -24,6 +24,7 @@ Public Class frmDocView
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As EventArgs) Handles MyBase.Load
If GDPICTURE_LICENSE = String.Empty Then
Logger.Warn("GD Picture Missing! Please add a license to the Database!")
MsgBox($"Lizenz für den Dokumenten Viewer wurde nicht konfiguriert.{vbNewLine}Bitte wenden Sie sich an Digital Data!", MsgBoxStyle.Exclamation, "Clipboard Watcher")
Exit Sub
End If
@@ -60,17 +61,15 @@ Public Class frmDocView
End If
End Sub
Public Sub Load_File_from_Path(filepath As String)
CloseDocument()
_docPath = filepath
Me.ToolStripStatusLabel2.Text = _docPath
ToolStripStatusLabel2.Text = _docPath
GdViewer1.ZoomMode = ViewerZoomMode.ZoomModeWidthViewer
GdViewer1.DocumentAlignment = ViewerDocumentAlignment.DocumentAlignmentTopCenter
GdViewer1.DisplayFromFile(filepath)
GdViewer1.Focus()
UpdateMainUi()
End Sub
Private Sub UpdateMainUi()