Include new Messagebox for important messages
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
Imports System.IO
|
||||
Imports DigitalData.GUIs.Common
|
||||
|
||||
Public Class ClassIndexFunctions
|
||||
Public Shared Function FileExistsinDropTable(pFilename As String, pHandleType As String) As Date
|
||||
@@ -56,8 +57,9 @@ Public Class ClassIndexFunctions
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Shared Function CheckDuplicateFiles(pFilepath As String, pModuleTitle As String, Optional pHandleType As String = "")
|
||||
Public Shared Function CheckDuplicateFiles(pForm As Form, pFilepath As String, pModuleTitle As String, Optional pHandleType As String = "")
|
||||
Dim oFileInfo As New FileInfo(pFilepath)
|
||||
Dim oFormHelper As New FormHelper(LOGCONFIG, pForm)
|
||||
Dim oFilename As String = oFileInfo.Name
|
||||
Dim oFileExists As Date = FileExistsinDropTable(pFilepath, pHandleType)
|
||||
|
||||
@@ -70,12 +72,14 @@ Public Class ClassIndexFunctions
|
||||
Dim oMessage As String
|
||||
|
||||
If USER_LANGUAGE = "de-DE" Then
|
||||
oMessage = $"Die Datei [{oFilename}] wurde bereits am [{oDate}] verarbeitet. Wollen Sie die gleiche Datei noch einmal verarbeiten?"
|
||||
oMessage = $"Die Datei [{oFilename}] wurde bereits am [{oDate}] verarbeitet.{vbNewLine}{vbNewLine}Wollen Sie die gleiche Datei noch einmal verarbeiten?"
|
||||
Else
|
||||
oMessage = $"The file [{oFilename}] has already been processed at [{oDate}]. Do you want to process the same file again?"
|
||||
oMessage = $"The file [{oFilename}] has already been processed at [{oDate}].{vbNewLine}{vbNewLine}Do you want to process the same file again?"
|
||||
End If
|
||||
|
||||
oResult = MessageBox.Show(oMessage, oBoxTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
|
||||
|
||||
oResult = oFormHelper.ShowQuestionMessage(oMessage, oBoxTitle)
|
||||
'oResult = MessageBox.Show(oMessage, oBoxTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
|
||||
|
||||
If oResult = DialogResult.Yes Then
|
||||
Return True
|
||||
|
||||
Reference in New Issue
Block a user