Common/DocumentPropertyMenu: Remove opening processes from menu
This commit is contained in:
parent
d2102f07e2
commit
398b75c155
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user