add new option ViewOnly to DocumentViewer

This commit is contained in:
Jonathan Jenne
2020-01-24 14:47:28 +01:00
parent 53f3ea4272
commit 4d8b371e0a
5 changed files with 109 additions and 104 deletions

View File

@@ -23,6 +23,8 @@ Public Class Form3
Logger.Info("DocumentViewer Form Loaded")
DocumentViewer1.Init(LogConfig, Key)
DocumentViewer1.LoadFile(FilePath)
DocumentViewer1.SetViewOnly(True)
Logger.Info("File Loaded")
End Sub
@@ -31,12 +33,9 @@ Public Class Form3
End Sub
Private Sub Form2_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
DocumentViewer1.Done()
Logger.Info("Form closing")
_frm4.Close()
End Sub
Private Sub Form3_Shown(sender As Object, e As EventArgs) Handles Me.Shown