MS Fehlerhandling FormatString
This commit is contained in:
@@ -75,11 +75,11 @@ Public Class frmMassValidator
|
||||
|
||||
If CURRENT_DT_PROFILE.Rows.Count = 0 Then
|
||||
LOGGER.Info(">> Profildaten konnten nicht geladen werden - Übergebenes Profil: : " & CURRENT_ProfilName, True)
|
||||
MsgBox("Achtung: Profildaten konnten nicht übergeben oder geladen werden.", MsgBoxStyle.Critical, "Achtung:")
|
||||
MsgBox("Profiledata not passed.", MsgBoxStyle.Critical, "Attention:")
|
||||
Me.Close()
|
||||
End If
|
||||
If CURRENT_DT_PROFILE.Rows.Count > 1 Then
|
||||
MsgBox("Es wurden mehr als 1 Profil zurückgegeben!!", MsgBoxStyle.Critical, "Achtung:")
|
||||
MsgBox("More than one profile in results!", MsgBoxStyle.Critical, "Attention:")
|
||||
Me.Close()
|
||||
Else
|
||||
If CURRENT_DT_PROFILE.Rows.Count = 1 Then
|
||||
@@ -477,7 +477,7 @@ Public Class frmMassValidator
|
||||
Try
|
||||
controltype = "Textbox"
|
||||
If idxname = "" Then
|
||||
MsgBox("Achtung fehlerhafte Konfiguration:" & vbNewLine & "Für das Control " & oControl.Name & " wurde KEIN INDEX hinterlegt!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
MsgBox("wrong config:" & vbNewLine & "there is no attribute for control: " & oControl.Name & vbNewLine & "Please check formdesigner as Admin!", MsgBoxStyle.Critical)
|
||||
Exit For
|
||||
End If
|
||||
If idxname Is Nothing = False Then
|
||||
@@ -511,7 +511,7 @@ Public Class frmMassValidator
|
||||
controltype = "ComboBox"
|
||||
Dim cmb As ComboBox = oControl
|
||||
If idxname = "" Then
|
||||
MsgBox("Achtung fehlerhafte Konfiguration:" & vbNewLine & "Für das Control " & oControl.Name & " wurde KEIN INDEX hinterlegt!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
MsgBox("wrong config:" & vbNewLine & "there is no attribute for control: " & oControl.Name & vbNewLine & "Please check formdesigner as Admin!", MsgBoxStyle.Critical)
|
||||
Exit For
|
||||
End If
|
||||
If idxname Is Nothing = False Then
|
||||
@@ -540,7 +540,7 @@ Public Class frmMassValidator
|
||||
controltype = "DataGridView"
|
||||
Dim dgv As DataGridView = oControl
|
||||
If idxname = "" Then
|
||||
MsgBox("Achtung fehlerhafte Konfiguration:" & vbNewLine & "Für das Control " & oControl.Name & " wurde KEIN INDEX hinterlegt!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
MsgBox("wrong config:" & vbNewLine & "there is no attribute for control: " & oControl.Name & vbNewLine & "Please check formdesigner as Admin!", MsgBoxStyle.Critical)
|
||||
Exit For
|
||||
End If
|
||||
If idxname Is Nothing = False Then
|
||||
@@ -610,7 +610,7 @@ Public Class frmMassValidator
|
||||
Case "System.Windows.Forms.CheckBox"
|
||||
controltype = "CheckBox"
|
||||
If idxname = "" Then
|
||||
MsgBox("Achtung fehlerhafte Konfiguration:" & vbNewLine & "Für das Control " & oControl.Name & " wurde KEIN INDEX hinterlegt!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
MsgBox("wrong config:" & vbNewLine & "there is no attribute for control: " & oControl.Name & vbNewLine & "Please check formdesigner as Admin!", MsgBoxStyle.Critical)
|
||||
Exit For
|
||||
End If
|
||||
If idxname Is Nothing = False Then
|
||||
@@ -678,7 +678,7 @@ Public Class frmMassValidator
|
||||
controltype = "DateTimePicker"
|
||||
Dim DTP As DateTimePicker = oControl
|
||||
If idxname = "" Then
|
||||
MsgBox("Achtung fehlerhafte Konfiguration:" & vbNewLine & "Für das Control " & oControl.Name & " wurde KEIN INDEX hinterlegt!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
MsgBox("wrong config:" & vbNewLine & "there is no attribute for control: " & oControl.Name & vbNewLine & "Please check formdesigner as Admin!", MsgBoxStyle.Critical)
|
||||
Exit For
|
||||
End If
|
||||
Case "DigitalData.Controls.LookupGrid.LookupControl3"
|
||||
@@ -1330,13 +1330,13 @@ Public Class frmMassValidator
|
||||
If workedFiles = CURRENT_DT_MASS_CHANGE_DOCS.Rows.Count Then
|
||||
If USER_LANGUAGE = "de-DE" Then
|
||||
MsgBox(String.Format("{0} Dateien wurden abgeschlossen!", workedFiles), MsgBoxStyle.Information, "Erfolgsmeldung:")
|
||||
ElseIf USER_LANGUAGE = "en-US" Then
|
||||
Else
|
||||
MsgBox(String.Format("{0} files have been worked successfully!", workedFiles), MsgBoxStyle.Information, "Success:")
|
||||
End If
|
||||
Else
|
||||
If USER_LANGUAGE = "de-DE" Then
|
||||
MsgBox(String.Format("{0} von {1} Dateien wurden abgeschlossen! Bitte prüfen Sie das Log und informieren Ihren Sysadmin.", workedFiles, CURRENT_DT_MASS_CHANGE_DOCS.Rows.Count), MsgBoxStyle.Information, "Achtung:")
|
||||
ElseIf USER_LANGUAGE = "en-US" Then
|
||||
Else
|
||||
MsgBox(String.Format("{0} of {1} files have been worked successfully - Check the log And inform Your sysadmin!", workedFiles, CURRENT_DT_MASS_CHANGE_DOCS.Rows.Count), MsgBoxStyle.Information, "Attention:")
|
||||
End If
|
||||
|
||||
|
||||
Reference in New Issue
Block a user