Common/DocumentPropertyMenu: Remove opening processes from menu

This commit is contained in:
Jonathan Jenne 2021-02-05 15:00:43 +01:00
parent d2102f07e2
commit 398b75c155

View File

@ -102,22 +102,11 @@ Public Class DocumentPropertyMenu
Exit Sub
End If
Using oProc As New Process
Try
oProc.StartInfo.FileName = _FilePath
oProc.EnableRaisingEvents = True
AddHandler oProc.Exited, AddressOf Handle_OpenFile
oProc.Start(_FilePath)
RaiseEvent FileOpened(Me, _FilePath)
Catch ex As Exception
_Logger.Error(ex)
End Try
End Using
End Sub
Public Sub Handle_OpenFile(sender As Object, e As EventArgs)
RaiseEvent FileClosed(Me, _FilePath)
Try
RaiseEvent FileOpened(Me, _FilePath)
Catch ex As Exception
_Logger.Error(ex)
End Try
End Sub
Public Sub OpenFolder_Click(sender As Object, e As EventArgs)