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

View File

@@ -47,9 +47,6 @@
<OptionInfer>On</OptionInfer>
</PropertyGroup>
<ItemGroup>
<Reference Include="DigitalData.Controls.DocumentViewer">
<HintPath>..\Controls.DocumentViewer\obj\Debug\DigitalData.Controls.DocumentViewer.dll</HintPath>
</Reference>
<Reference Include="GdPicture.NET.14">
<HintPath>D:\ProgramFiles\GdPicture.NET 14\Redist\GdPicture.NET (.NET Framework 4.5)\GdPicture.NET.14.dll</HintPath>
</Reference>
@@ -157,6 +154,10 @@
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Controls.DocumentViewer\DocumentViewer.vbproj">
<Project>{0958cddf-4a16-41f6-8837-8335f71d599c}</Project>
<Name>DocumentViewer</Name>
</ProjectReference>
<ProjectReference Include="..\Modules.Logging\Logging.vbproj">
<Project>{903b2d7d-3b80-4be9-8713-7447b704e1b0}</Project>
<Name>Logging</Name>