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
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Using oProc As New Process
|
|
||||||
Try
|
Try
|
||||||
oProc.StartInfo.FileName = _FilePath
|
|
||||||
oProc.EnableRaisingEvents = True
|
|
||||||
AddHandler oProc.Exited, AddressOf Handle_OpenFile
|
|
||||||
|
|
||||||
oProc.Start(_FilePath)
|
|
||||||
RaiseEvent FileOpened(Me, _FilePath)
|
RaiseEvent FileOpened(Me, _FilePath)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
_Logger.Error(ex)
|
_Logger.Error(ex)
|
||||||
End Try
|
End Try
|
||||||
End Using
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Public Sub Handle_OpenFile(sender As Object, e As EventArgs)
|
|
||||||
RaiseEvent FileClosed(Me, _FilePath)
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Sub OpenFolder_Click(sender As Object, e As EventArgs)
|
Public Sub OpenFolder_Click(sender As Object, e As EventArgs)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user