diff --git a/app/TaskFlow/frmValidator.resx b/app/TaskFlow/frmValidator.resx index 3a841e3..a23bd01 100644 --- a/app/TaskFlow/frmValidator.resx +++ b/app/TaskFlow/frmValidator.resx @@ -616,7 +616,7 @@ DocumentViewer1 - DigitalData.Controls.DocumentViewer.DocumentViewer, DigitalData.Controls.DocumentViewer, Version=2.7.0.0, Culture=neutral, PublicKeyToken=null + DigitalData.Controls.DocumentViewer.DocumentViewer, DigitalData.Controls.DocumentViewer, Version=2.7.2.0, Culture=neutral, PublicKeyToken=null SplitContainer1.Panel2 diff --git a/app/TaskFlow/frmValidator.vb b/app/TaskFlow/frmValidator.vb index 2a727e4..37237da 100644 --- a/app/TaskFlow/frmValidator.vb +++ b/app/TaskFlow/frmValidator.vb @@ -865,7 +865,7 @@ Public Class frmValidator Try If COPY_WMFILE_2TEMP = True Then MyValidationLogger.Debug("🗑️ Bereinige Temp-Ordner beim Schließen...") - CleanupTempFolder() + _documentPathHandler.CleanupTempFolder() End If Catch cleanupEx As Exception MyValidationLogger.Warn($"⚠️ Fehler beim Bereinigen des Temp-Ordners: {cleanupEx.Message}") @@ -901,52 +901,7 @@ Public Class frmValidator End If End Sub - Private Sub CleanupTempFolder() - Try - If String.IsNullOrEmpty(TEMP_DOCUMENT_FOLDER) Then - MyValidationLogger.Debug("TEMP_DOCUMENT_FOLDER ist nicht gesetzt → Kein Cleanup erforderlich") - Return - End If - If Not System.IO.Directory.Exists(TEMP_DOCUMENT_FOLDER) Then - MyValidationLogger.Debug($"Temp-Ordner [{TEMP_DOCUMENT_FOLDER}] existiert nicht → Kein Cleanup erforderlich") - Return - End If - - ' Alle Dateien im Ordner ermitteln - Dim files As String() = System.IO.Directory.GetFiles(TEMP_DOCUMENT_FOLDER) - - If files.Length = 0 Then - MyValidationLogger.Debug($"Temp-Ordner [{TEMP_DOCUMENT_FOLDER}] ist bereits leer") - Return - End If - - ' Alle Dateien löschen - Dim deletedCount As Integer = 0 - Dim errorCount As Integer = 0 - - For Each filePath As String In files - Try - System.IO.File.Delete(filePath) - deletedCount += 1 - MyValidationLogger.Debug($"Datei gelöscht: [{System.IO.Path.GetFileName(filePath)}]") - Catch fileEx As Exception - errorCount += 1 - MyValidationLogger.Warn($"⚠️ Datei konnte nicht gelöscht werden: [{System.IO.Path.GetFileName(filePath)}] - {fileEx.Message}") - End Try - Next - - If errorCount = 0 Then - MyValidationLogger.Debug($"✓ Temp-Ordner bereinigt: {deletedCount} Datei(en) gelöscht") - Else - MyValidationLogger.Warn($"⚠️ Temp-Ordner teilweise bereinigt: {deletedCount} gelöscht, {errorCount} Fehler") - End If - - Catch ex As Exception - MyValidationLogger.Error($"❌ Fehler beim Bereinigen des Temp-Ordners: {ex.Message}") - MyValidationLogger.Error(ex) - End Try - End Sub Public Function Test_Additional_Data_Searches_Exist() As Boolean If DT_FILTERED_PROFILE_SEARCHES_DATA.Rows.Count > 0 Then