WIP
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user