fix loading control name list

This commit is contained in:
Jonathan Jenne
2022-08-16 16:13:25 +02:00
parent 4c76383eee
commit 20d93efcc1
2 changed files with 85 additions and 59 deletions

View File

@@ -7,6 +7,7 @@ Imports DevExpress.XtraGrid.Views.Base
Imports DevExpress.XtraGrid.Views.Grid Imports DevExpress.XtraGrid.Views.Grid
Imports DigitalData.GUIs.Common Imports DigitalData.GUIs.Common
Imports DigitalData.Modules.Language.Utils Imports DigitalData.Modules.Language.Utils
Imports DigitalData.Modules.Logging
Public Class frmAdministration Public Class frmAdministration
Private UNSAVED_CHANGES_PROFILE As Boolean = False Private UNSAVED_CHANGES_PROFILE As Boolean = False
@@ -17,12 +18,15 @@ Public Class frmAdministration
Private ReadOnly email As New ClassEmail Private ReadOnly email As New ClassEmail
Private FormDesigner As frmFormDesigner Private FormDesigner As frmFormDesigner
Private _Logger As Logger = LOGCONFIG.GetLogger()
Private Property profile_guid As Integer = 0 Private Property profile_guid As Integer = 0
Private Property DT_CHART_CONFIG As DataTable Private Property DT_CHART_CONFIG As DataTable
Private Property PROF_ORIGIN As DataTable Private Property PROF_ORIGIN As DataTable
Private Sub frmAdministration_Load(sender As Object, e As System.EventArgs) Handles Me.Load Private Sub frmAdministration_Load(sender As Object, e As System.EventArgs) Handles Me.Load
_Logger.Debug("Loading Administration")
FORM_LOADED = False FORM_LOADED = False
UNSAVED_CHANGES_PROFILE = False UNSAVED_CHANGES_PROFILE = False
Try Try
@@ -57,7 +61,7 @@ Public Class frmAdministration
tabctrl_Profilkonfig.SelectedIndex = 0 tabctrl_Profilkonfig.SelectedIndex = 0
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _Logger.Error(ex)
MsgBox("Fehler bei Laden der Wertehilfen und Konfig-Daten: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Achtung:") MsgBox("Fehler bei Laden der Wertehilfen und Konfig-Daten: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Achtung:")
End Try End Try
If IDB_ACTIVE = True Then If IDB_ACTIVE = True Then
@@ -77,6 +81,8 @@ Public Class frmAdministration
ObjekttypenEintragen() ObjekttypenEintragen()
Indexe_eintragen() Indexe_eintragen()
' RibbonPageGroupProfile.Enabled = False ' RibbonPageGroupProfile.Enabled = False
_Logger.Debug("Administration loaded!")
End Sub End Sub
Sub Indexe_eintragen() Sub Indexe_eintragen()
If cmbObjekttypen.Text <> "" Then If cmbObjekttypen.Text <> "" Then
@@ -128,7 +134,7 @@ Public Class frmAdministration
' MyIndicies_Types.Add(type) ' MyIndicies_Types.Add(type)
'Next 'Next
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox("Error in GetIndices windream: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Achtung:") MsgBox("Error in GetIndices windream: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Achtung:")
PM_VEKTOR_INDEXComboBox.SelectedIndex = -1 PM_VEKTOR_INDEXComboBox.SelectedIndex = -1
cmbLOGIndex.SelectedIndex = -1 cmbLOGIndex.SelectedIndex = -1
@@ -163,7 +169,7 @@ Public Class frmAdministration
MyIndicies_Types.Add(type) MyIndicies_Types.Add(type)
Next Next
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox("Error in GetIndices IDB: " & vbNewLine & ex.Message, MsgBoxStyle.Critical) MsgBox("Error in GetIndices IDB: " & vbNewLine & ex.Message, MsgBoxStyle.Critical)
End Try End Try
@@ -177,6 +183,8 @@ Public Class frmAdministration
End Sub End Sub
Sub Refresh_Profildaten() Sub Refresh_Profildaten()
_Logger.Debug("Loading Profile Data")
Try Try
BINDINGSOURCE_CHANGING = True BINDINGSOURCE_CHANGING = True
CHANGES_FORM_DESIGN = True CHANGES_FORM_DESIGN = True
@@ -193,10 +201,11 @@ Public Class frmAdministration
End If End If
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _Logger.Error(ex)
MsgBox("Fehler bei Refresh_Profildaten: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Achtung:") MsgBox("Fehler bei Refresh_Profildaten: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Achtung:")
Finally Finally
BINDINGSOURCE_CHANGING = False BINDINGSOURCE_CHANGING = False
_Logger.Debug("Loading Profile Data done!")
End Try End Try
End Sub End Sub
Private Sub ObjekttypenEintragen() Private Sub ObjekttypenEintragen()
@@ -209,7 +218,7 @@ Public Class frmAdministration
Me.cmbObjekttypen.Items.Add(aType.aName) Me.cmbObjekttypen.Items.Add(aType.aName)
Next Next
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox("Es konnte keine Verbindung zum windream-Server hergestellt werden.", MsgBoxStyle.Critical, "Fehler beim Zugriff auf windream-Server") MsgBox("Es konnte keine Verbindung zum windream-Server hergestellt werden.", MsgBoxStyle.Critical, "Fehler beim Zugriff auf windream-Server")
End Try End Try
Else Else
@@ -260,7 +269,7 @@ Public Class frmAdministration
p.Close() p.Close()
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler bei öffnen der windream-Suche:") MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler bei öffnen der windream-Suche:")
End Try End Try
End Sub End Sub
@@ -301,7 +310,7 @@ Public Class frmAdministration
Catch ex As Exception Catch ex As Exception
'Profilzuordnung' 'Profilzuordnung'
LOGGER.Error(ex) _LOGGER.Error(ex)
End Try End Try
End Sub End Sub
@@ -329,7 +338,7 @@ Public Class frmAdministration
TBPROFILE_USERTableAdapter.CMDInsert(profileId, userId, USER_USERNAME) TBPROFILE_USERTableAdapter.CMDInsert(profileId, userId, USER_USERNAME)
FillProfile_Zuordnung(profileId) FillProfile_Zuordnung(profileId)
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Hinzufügen eines Users:") MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Hinzufügen eines Users:")
End Try End Try
End Sub End Sub
@@ -343,7 +352,7 @@ Public Class frmAdministration
TBPROFILE_USERTableAdapter.CmdDelete(profileId, userId) TBPROFILE_USERTableAdapter.CmdDelete(profileId, userId)
FillProfile_Zuordnung(profileId) FillProfile_Zuordnung(profileId)
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Entfernen eines Users:") MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Entfernen eines Users:")
End Try End Try
End Sub End Sub
@@ -359,7 +368,7 @@ Public Class frmAdministration
' TBPROFILE_USERTableAdapter.CMDInsert(profileId, userId, USER_USERNAME) ' TBPROFILE_USERTableAdapter.CMDInsert(profileId, userId, USER_USERNAME)
FillProfile_Zuordnung(profileId) FillProfile_Zuordnung(profileId)
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Hinzufügen einer Gruppe:") MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Hinzufügen einer Gruppe:")
End Try End Try
End Sub End Sub
@@ -375,7 +384,7 @@ Public Class frmAdministration
'TBPROFILE_USERTableAdapter.cmdDelete(userId) 'TBPROFILE_USERTableAdapter.cmdDelete(userId)
FillProfile_Zuordnung(profileId) FillProfile_Zuordnung(profileId)
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Entfernen einer Gruppe:") MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Entfernen einer Gruppe:")
End Try End Try
End Sub End Sub
@@ -388,9 +397,9 @@ Public Class frmAdministration
EditMode_Profile("Unlock") EditMode_Profile("Unlock")
End Sub End Sub
Private Sub Refresh_Final_indexe() Private Sub Refresh_Final_indexe()
_Logger.Debug("Loading Final Index Data")
Try Try
'Me.lblSaveFinalIndex.Visible = False 'Me.lblSaveFinalIndex.Visible = False
If FORM_LOADED = False Then Exit Sub If FORM_LOADED = False Then Exit Sub
@@ -404,6 +413,8 @@ Public Class frmAdministration
Catch ex As Exception Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler bei Refresh_Final_indexe:") MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler bei Refresh_Final_indexe:")
Finally
_Logger.Debug("Loading Final Index Data done!")
End Try End Try
End Sub End Sub
@@ -531,7 +542,7 @@ Public Class frmAdministration
SQLconnection.Close() SQLconnection.Close()
Return True Return True
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox("Fehler in Execute_SQL: " & vbNewLine & ex.Message & vbNewLine & vbNewLine & " SQL: " & SQL) MsgBox("Fehler in Execute_SQL: " & vbNewLine & ex.Message & vbNewLine & vbNewLine & " SQL: " & SQL)
Return False Return False
End Try End Try
@@ -573,7 +584,7 @@ Public Class frmAdministration
Try Try
Me.TBDD_USERTableAdapter.Fill(Me.DD_DMSLiteDataSet.TBDD_USER) Me.TBDD_USERTableAdapter.Fill(Me.DD_DMSLiteDataSet.TBDD_USER)
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox("Fehler bei LoadUsers: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Fehler:") MsgBox("Fehler bei LoadUsers: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Fehler:")
End Try End Try
End Sub End Sub
@@ -698,9 +709,9 @@ Public Class frmAdministration
Refresh_Final_indexe() Refresh_Final_indexe()
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox($"Error while loading Final Index properties: {ex.Message}", MsgBoxStyle.Critical) MsgBox($"Error while loading Final Index properties: {ex.Message}", MsgBoxStyle.Critical)
LOGGER.Info($"Error while loading Final Index properties: {ex.Message}") _LOGGER.Info($"Error while loading Final Index properties: {ex.Message}")
End Try End Try
End Sub End Sub
@@ -742,7 +753,7 @@ Public Class frmAdministration
propertyGrid.Refresh() propertyGrid.Refresh()
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
Finally Finally
UNSAVED_CHANGES_FI = True UNSAVED_CHANGES_FI = True
End Try End Try
@@ -802,7 +813,7 @@ Public Class frmAdministration
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox("Fehler bei Anlage Profilkopie:" & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Fehler:") MsgBox("Fehler bei Anlage Profilkopie:" & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Fehler:")
End Try End Try
@@ -824,7 +835,7 @@ Public Class frmAdministration
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox("Fehler bei Löschen des Profils:" & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Fehler:") MsgBox("Fehler bei Löschen des Profils:" & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Fehler:")
End Try End Try
@@ -863,7 +874,7 @@ Public Class frmAdministration
tsbStaticInfo.Caption = "" tsbStaticInfo.Caption = ""
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
If ex.Message.Contains("DataTable-Index") = False Then If ex.Message.Contains("DataTable-Index") = False Then
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler bei Speichern des Profils:") MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler bei Speichern des Profils:")
End If End If
@@ -878,7 +889,7 @@ Public Class frmAdministration
Try Try
TBPM_PROFILEBindingSource.AddNew() TBPM_PROFILEBindingSource.AddNew()
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
End Try End Try
End If End If
@@ -921,7 +932,7 @@ Public Class frmAdministration
End If End If
Catch ex As Exception Catch ex As Exception
MsgBox("Fehler beim Speichern: " & vbNewLine & vbNewLine & ex.Message) MsgBox("Fehler beim Speichern: " & vbNewLine & vbNewLine & ex.Message)
LOGGER.Error(ex) _LOGGER.Error(ex)
End Try End Try
End Sub End Sub
@@ -1035,9 +1046,9 @@ Public Class frmAdministration
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox("Error while Saving Final Index: " & ex.Message, MsgBoxStyle.Critical) MsgBox("Error while Saving Final Index: " & ex.Message, MsgBoxStyle.Critical)
LOGGER.Info("Error while Saving Final Index: " & ex.Message) _LOGGER.Info("Error while Saving Final Index: " & ex.Message)
Finally Finally
BarButtonItem19.Visibility = DevExpress.XtraBars.BarItemVisibility.Never BarButtonItem19.Visibility = DevExpress.XtraBars.BarItemVisibility.Never
BarButtonItem16.Visibility = DevExpress.XtraBars.BarItemVisibility.Always BarButtonItem16.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
@@ -1070,7 +1081,7 @@ Public Class frmAdministration
End If End If
Catch ex As Exception Catch ex As Exception
MsgBox("Error in Saving SQL Overview: " & vbNewLine & vbNewLine & ex.Message) MsgBox("Error in Saving SQL Overview: " & vbNewLine & vbNewLine & ex.Message)
LOGGER.Error(ex) _LOGGER.Error(ex)
End Try End Try
End Sub End Sub
@@ -1101,7 +1112,7 @@ Public Class frmAdministration
End If End If
Catch ex As Exception Catch ex As Exception
MsgBox("Error in Saving Profile SQL: " & vbNewLine & vbNewLine & ex.Message) MsgBox("Error in Saving Profile SQL: " & vbNewLine & vbNewLine & ex.Message)
LOGGER.Error(ex) _LOGGER.Error(ex)
End Try End Try
End Sub End Sub
@@ -1133,7 +1144,7 @@ Public Class frmAdministration
End If End If
Catch ex As Exception Catch ex As Exception
MsgBox("Error in Saving Profile SQLFinish: " & vbNewLine & vbNewLine & ex.Message) MsgBox("Error in Saving Profile SQLFinish: " & vbNewLine & vbNewLine & ex.Message)
LOGGER.Error(ex) _LOGGER.Error(ex)
End Try End Try
End Sub End Sub
Function CHECK_QUESTION_CHANGES() As Boolean Function CHECK_QUESTION_CHANGES() As Boolean
@@ -1175,15 +1186,21 @@ Public Class frmAdministration
If FORM_LOADED = False Or UNSAVED_CHANGES_PROFILE = True Or UNSAVED_CHANGES_FI = True Or BINDINGSOURCE_CHANGING = True Then If FORM_LOADED = False Or UNSAVED_CHANGES_PROFILE = True Or UNSAVED_CHANGES_FI = True Or BINDINGSOURCE_CHANGING = True Then
Exit Sub Exit Sub
End If End If
BINDINGSOURCE_CHANGING = True BINDINGSOURCE_CHANGING = True
If TabControl1.SelectedIndex = 1 And FORM_LOADED Then If TabControl1.SelectedIndex = 1 And FORM_LOADED Then
Try Try
Dim profileId As Integer = GetCurrentProfileId() Dim profileId As Integer = GetCurrentProfileId()
_Logger.Debug("Loading Profile [{0}]", profileId)
If Not IsNothing(profileId) Then If Not IsNothing(profileId) Then
FillProfile_Zuordnung(profileId) FillProfile_Zuordnung(profileId)
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox($"Error while calling FillProfile_User", MsgBoxStyle.Critical) MsgBox($"Error while calling FillProfile_User", MsgBoxStyle.Critical)
End Try End Try
End If End If

View File

@@ -19,6 +19,7 @@ Public Class frmFormDesigner
' Control Variables ' Control Variables
Private CurrentControl As Control = Nothing Private CurrentControl As Control = Nothing
Private _Logger = LOGCONFIG.GetLogger()
' Movement Variables ' Movement Variables
Private Mouse_IsPressed As Boolean Private Mouse_IsPressed As Boolean
@@ -36,16 +37,24 @@ Public Class frmFormDesigner
Private CurrentColumnId As Integer = 0 Private CurrentColumnId As Integer = 0
Public Sub Reload_ControlNameList() Public Sub Reload_ControlNameList()
TBPM_PROFILE_CONTROLSTableAdapter.FillByProfil(DD_DMSLiteDataSet.TBPM_PROFILE_CONTROLS, USER_LANGUAGE, CURRENT_ProfilGUID) _Logger.debug("Reloading control name list")
CURRENT_CONTROL_NAME_LIST = DD_DMSLiteDataSet.TBPM_PROFILE_CONTROLS.AsEnumerable(). Dim oControlNameList = DatabaseFallback.GetDatatableECM($"
Where(Function(row) row.CTRL_TYPE <> "LBL"). SELECT NAME
Select(Function(row) row.NAME). FROM TBPM_PROFILE_CONTROLS
OrderBy(Function(name) name). WHERE
PROFIL_ID = {CURRENT_ProfilGUID} AND
CTRL_TYPE <> 'LBL'
ORDER BY NAME"
)
CURRENT_CONTROL_NAME_LIST = oControlNameList.AsEnumerable().
Select(Function(row) row.ItemEx("NAME", String.Empty)).
ToList() ToList()
_Logger.debug("Reloading control name list done!")
End Sub End Sub
Private Sub frmFormDesigner_Load(sender As Object, e As EventArgs) Handles Me.Load Private Sub frmFormDesigner_Load(sender As Object, e As EventArgs) Handles Me.Load
Try Try
ClassControlCreator.Logger = LOGCONFIG.GetLoggerFor("ControlCreator") ClassControlCreator.Logger = LOGCONFIG.GetLoggerFor("ControlCreator")
BarButtonItem3.Caption = "Designer locked" BarButtonItem3.Caption = "Designer locked"
BarButtonItem3.ItemAppearance.Normal.BackColor = Color.Red BarButtonItem3.ItemAppearance.Normal.BackColor = Color.Red
@@ -104,7 +113,7 @@ Public Class frmFormDesigner
End If End If
'Catch ex As Exception 'Catch ex As Exception
' LOGGER.Error(ex) ' _Logger.Error(ex)
' MsgBox("Fehler bei Initialisieren von windream: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Achtung:") ' MsgBox("Fehler bei Initialisieren von windream: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Achtung:")
'End Try 'End Try
@@ -115,13 +124,13 @@ Public Class frmFormDesigner
TBPM_CONTROL_TABLETableAdapter.Connection.ConnectionString = CONNECTION_STRING_ECM TBPM_CONTROL_TABLETableAdapter.Connection.ConnectionString = CONNECTION_STRING_ECM
TBDD_CONNECTIONTableAdapter.Fill(DD_DMSLiteDataSet.TBDD_CONNECTION) TBDD_CONNECTIONTableAdapter.Fill(DD_DMSLiteDataSet.TBDD_CONNECTION)
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox("Fehler bei Laden der Connection-Strings und Grunddaten: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Achtung:") MsgBox("Fehler bei Laden der Connection-Strings und Grunddaten: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Achtung:")
End Try End Try
LoadControls() LoadControls()
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox(ex.Message, MsgBoxStyle.Critical, "error loading form:") MsgBox(ex.Message, MsgBoxStyle.Critical, "error loading form:")
End Try End Try
End Sub End Sub
@@ -305,7 +314,7 @@ Public Class frmFormDesigner
End Select End Select
Next Next
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox("Fehler bei LoadControls " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Achtung:") MsgBox("Fehler bei LoadControls " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Achtung:")
End Try End Try
@@ -320,7 +329,7 @@ Public Class frmFormDesigner
' Try ' Try
' TBPM_PROFILE_CONTROLSBindingSource.Clear() ' TBPM_PROFILE_CONTROLSBindingSource.Clear()
' Catch ex As Exception ' Catch ex As Exception
' LOGGER.Error(ex) ' _Logger.Error(ex)
' End Try ' End Try
'End Sub 'End Sub
@@ -509,9 +518,9 @@ Public Class frmFormDesigner
' pnldesigner.Controls.Add(oButton) ' pnldesigner.Controls.Add(oButton)
' End Select ' End Select
' Catch ex As Exception ' Catch ex As Exception
' LOGGER.Error(ex) ' _Logger.Error(ex)
' LOGGER.Info($"Error while Adding new control {e.Data.GetData(DataFormats.Text)}:") ' _Logger.Info($"Error while Adding new control {e.Data.GetData(DataFormats.Text)}:")
' LOGGER.Info(ex) ' _Logger.Info(ex)
' End Try ' End Try
'End Sub 'End Sub
@@ -599,7 +608,7 @@ Public Class frmFormDesigner
GridControlContextMenu.Show(Cursor.Position.X, Cursor.Position.Y) GridControlContextMenu.Show(Cursor.Position.X, Cursor.Position.Y)
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox("Error while loading Column Configuration: " & vbCrLf & ex.Message, MsgBoxStyle.Critical) MsgBox("Error while loading Column Configuration: " & vbCrLf & ex.Message, MsgBoxStyle.Critical)
End Try End Try
End Sub End Sub
@@ -618,7 +627,7 @@ Public Class frmFormDesigner
End If End If
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
MsgBox(ex.Message, MsgBoxStyle.Critical, "DeleteControl:") MsgBox(ex.Message, MsgBoxStyle.Critical, "DeleteControl:")
End Try End Try
End Sub End Sub
@@ -718,7 +727,7 @@ Public Class frmFormDesigner
MyBase.Cursor = Cursors.Default MyBase.Cursor = Cursors.Default
Catch ex As Exception Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical) MsgBox(ex.Message, MsgBoxStyle.Critical)
LOGGER.Error(ex) _LOGGER.Error(ex)
Mouse_IsMoving = False Mouse_IsMoving = False
Mouse_IsPressed = False Mouse_IsPressed = False
End Try End Try
@@ -747,7 +756,7 @@ Public Class frmFormDesigner
End If End If
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
Mouse_IsMoving = False Mouse_IsMoving = False
End Try End Try
End Sub End Sub
@@ -822,9 +831,9 @@ Public Class frmFormDesigner
Try Try
TBPM_PROFILE_CONTROLSTableAdapter.FillByProfil(DD_DMSLiteDataSet.TBPM_PROFILE_CONTROLS, USER_LANGUAGE, ProfileId) TBPM_PROFILE_CONTROLSTableAdapter.FillByProfil(DD_DMSLiteDataSet.TBPM_PROFILE_CONTROLS, USER_LANGUAGE, ProfileId)
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
LOGGER.Info("Error while executing TBPM_PROFILE_CONTROLSTableAdapter.FillByProfil in LoadControlProperties:") _LOGGER.Info("Error while executing TBPM_PROFILE_CONTROLSTableAdapter.FillByProfil in LoadControlProperties:")
LOGGER.Info(ex) _LOGGER.Info(ex)
End Try End Try
Dim oControlId = DirectCast(sender.Tag, ClassControlCreator.ControlMetadata).Guid Dim oControlId = DirectCast(sender.Tag, ClassControlCreator.ControlMetadata).Guid
@@ -835,7 +844,7 @@ Public Class frmFormDesigner
' Control-Id wurde nicht in DataRow gefunden ' Control-Id wurde nicht in DataRow gefunden
If IsNothing(oRow) Then If IsNothing(oRow) Then
LOGGER.Info($"Error while filtering Controls by Guid '{oControlId}' in LoadControlProperties:") _LOGGER.Info($"Error while filtering Controls by Guid '{oControlId}' in LoadControlProperties:")
MsgBox($"Control mit der Id {oControlId} wurde nicht gefunden!", MsgBoxStyle.Critical, "Fehler beim Laden der Control Eigenschaften") MsgBox($"Control mit der Id {oControlId} wurde nicht gefunden!", MsgBoxStyle.Critical, "Fehler beim Laden der Control Eigenschaften")
Exit Sub Exit Sub
@@ -1243,10 +1252,10 @@ Public Class frmFormDesigner
Return True Return True
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
Dim oMsg = $"UpdateImage - Error while saving Control (Id: {CURRENT_CONTROL_ID}): {vbCrLf}{ex.Message}" Dim oMsg = $"UpdateImage - Error while saving Control (Id: {CURRENT_CONTROL_ID}): {vbCrLf}{ex.Message}"
MsgBox(oMsg) MsgBox(oMsg)
LOGGER.Info(oMsg) _LOGGER.Info(oMsg)
Return False Return False
End Try End Try
End Function End Function
@@ -1279,10 +1288,10 @@ Public Class frmFormDesigner
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
Dim oMsg = $"UpdateSingleValue - Fehler beim Speichern von Control (Id: {guid}, column: {columnName}): {vbCrLf}{ex.Message}" Dim oMsg = $"UpdateSingleValue - Fehler beim Speichern von Control (Id: {guid}, column: {columnName}): {vbCrLf}{ex.Message}"
MsgBox(oMsg) MsgBox(oMsg)
LOGGER.Info(oMsg) _LOGGER.Info(oMsg)
Return False Return False
End Try End Try
End Function End Function
@@ -1301,7 +1310,7 @@ Public Class frmFormDesigner
Catch ex As Exception Catch ex As Exception
Dim oMsg = $"MenuItemAddColumn_Click - Fehler beim Hinzufügen von einer neuen Spalte: {vbCrLf}{ex.Message}" Dim oMsg = $"MenuItemAddColumn_Click - Fehler beim Hinzufügen von einer neuen Spalte: {vbCrLf}{ex.Message}"
MsgBox(oMsg) MsgBox(oMsg)
LOGGER.Error(ex) _LOGGER.Error(ex)
End Try End Try
End Sub End Sub
@@ -1334,7 +1343,7 @@ Public Class frmFormDesigner
End If End If
Catch ex As Exception Catch ex As Exception
MsgBox("Error in Saving Profile SQLFinish: " & vbNewLine & vbNewLine & ex.Message) MsgBox("Error in Saving Profile SQLFinish: " & vbNewLine & vbNewLine & ex.Message)
LOGGER.Error(ex) _LOGGER.Error(ex)
End Try End Try
End Sub End Sub
@@ -1579,9 +1588,9 @@ Public Class frmFormDesigner
RibPGCtrlWidth.Enabled = True RibPGCtrlWidth.Enabled = True
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) _LOGGER.Error(ex)
LOGGER.Info($"Error while Adding new control {ControlSelected}:") _LOGGER.Info($"Error while Adding new control {ControlSelected}:")
LOGGER.Info(ex) _LOGGER.Info(ex)
End Try End Try
Me.Cursor = Cursors.Default Me.Cursor = Cursors.Default
ControlSelected = "" ControlSelected = ""