add general error handling & logging

This commit is contained in:
Jonathan Jenne 2020-10-14 14:38:51 +02:00
parent bc46ccadb3
commit 3f97727cee

View File

@ -89,7 +89,6 @@ Public Class frmMain
formopenClose = True
LOGGER.Debug("Initializing MainForm....")
' Create helper to save/load expanded GroupColumns at runtime
RefreshHelper = New RefreshHelper(GridView_Docs, "GUID")
@ -1964,16 +1963,20 @@ Public Class frmMain
End Sub
Private Sub frmMain_Resize(sender As Object, e As EventArgs) Handles Me.Resize
If formShown = False Then
Exit Sub
End If
Try
If formShown = False Then
Exit Sub
End If
If WindowState = FormWindowState.Maximized Then
My.Settings.frmMainWindowState = "Maximized"
ElseIf WindowState = FormWindowState.Normal Then
My.Settings.frmMainWindowState = "Normal"
End If
My.Settings.Save()
If WindowState = FormWindowState.Maximized Then
My.Settings.frmMainWindowState = "Maximized"
ElseIf WindowState = FormWindowState.Normal Then
My.Settings.frmMainWindowState = "Normal"
End If
My.Settings.Save()
Catch ex As Exception
LOGGER.Error(ex)
End Try
End Sub
Private Sub BarButtonItem3_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtniGrundeinstellung.ItemClick
Try
@ -2058,8 +2061,6 @@ Public Class frmMain
Catch ex As Exception
LOGGER.Warn($"Timer5Mins Error: {ex.Message}")
End Try
End Sub
Private Sub bwBasicData_DoWork(sender As Object, e As DoWorkEventArgs) Handles bwBasicData.DoWork
GetBaseData("bwBasicData")
@ -2205,7 +2206,7 @@ Public Class frmMain
tslblObjectCount.Text = objectCount_Descr
tslblObjectCount.ForeColor = Color.DarkOrange
Catch ex As Exception
LOGGER.Error(ex.Message)
End Try
End Sub