MS
This commit is contained in:
@@ -330,27 +330,29 @@ Partial Public Class frmEnvelopeEditor
|
||||
MsgBox(Resources.Envelope.Envelope_could_not_be_sent, MsgBoxStyle.Critical, Text)
|
||||
Else
|
||||
If MsgBox(Resources.Envelope.Envelope_Invitations_Sent, MsgBoxStyle.Information Or MsgBoxStyle.OkOnly, Text) = MsgBoxResult.Ok Then
|
||||
If DOCUMENT_PATH_MOVE_AFTSEND <> String.Empty Then
|
||||
If My.Settings.NetUse_PW <> String.Empty And My.Settings.NetUse_Usr <> String.Empty Then
|
||||
Dim oDecrypted = Decryption.Decrypt(My.Settings.NetUse_PW)
|
||||
For Each odoc In Controller.Envelope.Documents 'envelope ist leer!
|
||||
Directory2Delete = ""
|
||||
CopyFileWithNetUse(odoc.Filepath, DOCUMENT_PATH_MOVE_AFTSEND, My.Settings.NetUse_Usr, My.Settings.NetUse_PW)
|
||||
If Directory2Delete <> String.Empty Then
|
||||
Logger.Debug("Now Deleting SourcePath: {0} ...", Directory2Delete)
|
||||
Try
|
||||
System.IO.Directory.Delete(Directory2Delete, True)
|
||||
Logger.Debug("Successfully deleted Sourcepath!")
|
||||
Catch ex As Exception
|
||||
Logger.Warn("Unexpected Error while deleting SourcePath {0}", Directory2Delete)
|
||||
Logger.Warn("ErrorMessage: {0}", ex.Message)
|
||||
End Try
|
||||
'If DOCUMENT_PATH_MOVE_AFTSEND <> String.Empty Then
|
||||
' If My.Settings.NetUse_PW <> String.Empty And My.Settings.NetUse_Usr <> String.Empty Then
|
||||
' Dim oDecrypted = Decryption.Decrypt(My.Settings.NetUse_PW)
|
||||
' For Each odoc In Controller.Envelope.Documents 'envelope ist leer!
|
||||
' Directory2Delete = ""
|
||||
' If CopyFileWithNetUse(odoc.Filepath, DOCUMENT_PATH_MOVE_AFTSEND, My.Settings.NetUse_Usr, My.Settings.NetUse_PW) = False Then
|
||||
' BarStaticItem1.Caption = "ERROR while copying files to DMZ! Check Your log!"
|
||||
' End If
|
||||
' If Directory2Delete <> String.Empty Then
|
||||
' Logger.Debug("Now Deleting SourcePath: {0} ...", Directory2Delete)
|
||||
' Try
|
||||
' System.IO.Directory.Delete(Directory2Delete, True)
|
||||
' Logger.Debug("Successfully deleted Sourcepath!")
|
||||
' Catch ex As Exception
|
||||
' Logger.Warn("Unexpected Error while deleting SourcePath {0}", Directory2Delete)
|
||||
' Logger.Warn("ErrorMessage: {0}", ex.Message)
|
||||
' End Try
|
||||
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
' End If
|
||||
' Next
|
||||
' End If
|
||||
|
||||
End If
|
||||
'End If
|
||||
Me.Close()
|
||||
End If
|
||||
End If
|
||||
@@ -397,7 +399,7 @@ Partial Public Class frmEnvelopeEditor
|
||||
|
||||
Else
|
||||
Logger.Warn("Error while connecting to network-path: " & pDestinationPath)
|
||||
MsgBox("Error while connecting to network: " & pDestinationPath, MsgBoxStyle.Critical, "Unexpected error in CopyFileWithNetUse")
|
||||
'MsgBox("Error while connecting to network: " & pDestinationPath, MsgBoxStyle.Critical, "Unexpected error in CopyFileWithNetUse")
|
||||
Return False
|
||||
End If
|
||||
End Using
|
||||
|
||||
Reference in New Issue
Block a user