2 Commits

Author SHA1 Message Date
Jonathan Jenne
c4e5557d4d GUIs.Common: Version 1.0.0.1 2020-06-17 11:19:47 +02:00
Jonathan Jenne
00ac955f78 GUIs.Common: improve error message 2020-06-17 11:19:01 +02:00
4 changed files with 11 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
Public Class Constants Public Class Constants
Public Const NO_ROW_HANDLE = -1 Public Const NO_ROW_HANDLE = -1
Public Shared ReadOnly MESSAGE_TOO_MANY_SEARCHES = "You have more than three searches configured. This Window will only show the first three result lists!"
Public Shared ReadOnly MESSAGE_ERROR_IN_SEARCHES = $"An error occurred while executing searches or no searches were found!{vbNewLine}
Please check the SQL Queries for errors and if the correct connection was configured.{vbNewLine}{vbNewLine}
For more information check the Logfile."
End Class End Class

View File

@@ -94,7 +94,7 @@ Public Class frmDataResultList
CreateDataGrid(GridView3, oResult.Datatable) CreateDataGrid(GridView3, oResult.Datatable)
Case Else Case Else
MessageBox.Show("You have more than three searches configured. This Window will only show the first three result lists!") MessageBox.Show(Constants.MESSAGE_TOO_MANY_SEARCHES)
Exit For Exit For
End Select End Select
Next Next
@@ -108,7 +108,7 @@ Public Class frmDataResultList
SwitchMainContainerHorizontal.Enabled = False SwitchMainContainerHorizontal.Enabled = False
SwitchDetailContainerHorizontal.Enabled = False SwitchDetailContainerHorizontal.Enabled = False
MessageBox.Show("Es ist ein Fehler beim Ausführen der Suchen aufgetreten oder es wurden keine Suchen gefunden!", Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation) MessageBox.Show(Constants.MESSAGE_ERROR_IN_SEARCHES, Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
Case 1 Case 1
SplitContainerControl1.SetPanelCollapsed(True) SplitContainerControl1.SetPanelCollapsed(True)
SplitContainerControl2.SetPanelCollapsed(True) SplitContainerControl2.SetPanelCollapsed(True)

View File

@@ -102,7 +102,7 @@ Public Class frmDocumentResultList
UpdateGridHeader(index, oResult.Datatable.Rows.Count) UpdateGridHeader(index, oResult.Datatable.Rows.Count)
Case Else Case Else
MessageBox.Show("You have more than three searches configured. This Window will only show the first three result lists!", Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation) MessageBox.Show(Constants.MESSAGE_TOO_MANY_SEARCHES, Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
Exit For Exit For
End Select End Select
Next Next
@@ -116,7 +116,7 @@ Public Class frmDocumentResultList
SwitchMainContainerHorizontal.Enabled = False SwitchMainContainerHorizontal.Enabled = False
SwitchDetailContainerHorizontal.Enabled = False SwitchDetailContainerHorizontal.Enabled = False
MessageBox.Show("Es ist ein Fehler beim Ausführen der Suchen aufgetreten oder es wurden keine Suchen gefunden!", Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation) MessageBox.Show(Constants.MESSAGE_ERROR_IN_SEARCHES, Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
Case 1 Case 1
SplitContainerControl1.SetPanelCollapsed(True) SplitContainerControl1.SetPanelCollapsed(True)
SplitContainerControl2.SetPanelCollapsed(True) SplitContainerControl2.SetPanelCollapsed(True)

View File

@@ -12,7 +12,7 @@ Imports System.Runtime.InteropServices
<Assembly: AssemblyDescription("")> <Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("")> <Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("Common")> <Assembly: AssemblyProduct("Common")>
<Assembly: AssemblyCopyright("Copyright © 2019")> <Assembly: AssemblyCopyright("Copyright © 2020")>
<Assembly: AssemblyTrademark("")> <Assembly: AssemblyTrademark("")>
<Assembly: ComVisible(False)> <Assembly: ComVisible(False)>
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' übernehmen, indem Sie "*" eingeben: ' übernehmen, indem Sie "*" eingeben:
' <Assembly: AssemblyVersion("1.0.*")> ' <Assembly: AssemblyVersion("1.0.*")>
<Assembly: AssemblyVersion("1.0.0.0")> <Assembly: AssemblyVersion("1.0.0.1")>
<Assembly: AssemblyFileVersion("1.0.0.0")> <Assembly: AssemblyFileVersion("1.0.0.0")>