Add Controls to SQLEditor placeholders

This commit is contained in:
Jonathan Jenne
2022-07-14 16:23:07 +02:00
parent 8aa16e7677
commit a3a0a02b6e
3 changed files with 13 additions and 6 deletions

View File

@@ -20,6 +20,10 @@ Public Class ClassSQLEditor
Using oForm As New frmSQLEditor(LOGCONFIG, DatabaseECM)
oForm.SQLCommand = SQLSTring
oForm.PlaceholdersManualPrefix = "CTRL"
oForm.PlaceholdersManualTitle = "Controls"
oForm.PlaceholdersManual = CURRENT_CONTROL_LIST.ToDictionary(Function(control) control.Name, Function(control) control.Name)
If svc.ShowDialog(oForm) = DialogResult.OK Then
Dim sql As New SQLValue(oForm.SQLCommand)
CURRENT_SQL_CON = oForm.SQLConnection