improve init, clean up code

This commit is contained in:
Jonathan Jenne
2020-10-28 15:47:20 +01:00
parent e11e52faba
commit 1d976b6ab3
8 changed files with 133 additions and 127 deletions

View File

@@ -34,20 +34,16 @@ Public Class frmFlowForm
Next
Dim oSQL = $"SELECT * FROM [dbo].[FNIDB_GET_SEARCH_PROFILES] ({My.Application.User.UserId},'{My.Application.User.Language}')"
Dim oDT As DataTable = My.Database_IDB.GetDatatable(oSQL)
Dim oDatatable As DataTable = My.Database_IDB.GetDatatable(oSQL)
PictureBoxSearch.Visible = False
If Not IsNothing(oDT) Then
If oDT.Rows.Count > 0 Then
IDBSearchActive = True
DTIDB_SEARCHES = oDT
PictureBoxSearch.Visible = True
End If
If Not IsNothing(oDatatable) OrElse oDatatable.Rows.Count > 0 Then
IDBSearchActive = True
DTIDB_SEARCHES = oDatatable
PictureBoxSearch.Visible = True
End If
My.DTAttributes = My.Database_IDB.GetDatatable("SELECT * FROM TBIDB_ATTRIBUTE")
End Sub
Public Sub SetFormLocation()