Improve Logging for frmConfig
This commit is contained in:
@@ -192,18 +192,22 @@ Public Class frmConfig
|
|||||||
Private Sub GridViewTables_FocusedRowChanged(sender As Object, e As Views.Base.FocusedRowChangedEventArgs) Handles GridViewTables.FocusedRowChanged
|
Private Sub GridViewTables_FocusedRowChanged(sender As Object, e As Views.Base.FocusedRowChangedEventArgs) Handles GridViewTables.FocusedRowChanged
|
||||||
Try
|
Try
|
||||||
If GridViewTables.FocusedRowHandle < 0 Then
|
If GridViewTables.FocusedRowHandle < 0 Then
|
||||||
|
Logger.Debug("No row selected. Exiting.")
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim oRow As DataRow = GridViewTables.GetDataRow(GridViewTables.FocusedRowHandle)
|
Dim oRow As DataRow = GridViewTables.GetDataRow(GridViewTables.FocusedRowHandle)
|
||||||
|
|
||||||
If oRow Is Nothing Then
|
If oRow Is Nothing Then
|
||||||
|
Logger.Debug("Invalid row handle. Exiting.")
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim oTableId = oRow.Item("GUID")
|
Dim oTableId = oRow.Item("GUID")
|
||||||
|
Logger.Debug("Loading Items for Table [{0}]", oTableId)
|
||||||
TBMT_TEMPLATE_ITEMSTableAdapter.Fill(DS_DD_ECM.TBMT_TEMPLATE_ITEMS, oTableId)
|
TBMT_TEMPLATE_ITEMSTableAdapter.Fill(DS_DD_ECM.TBMT_TEMPLATE_ITEMS, oTableId)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
Logger.Error(ex)
|
||||||
FormHelper.ShowError(ex, "Laden der Tabelle")
|
FormHelper.ShowError(ex, "Laden der Tabelle")
|
||||||
End Try
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
Reference in New Issue
Block a user