SQLCommon: Make form title configurable

This commit is contained in:
Jonathan Jenne 2021-08-02 11:58:34 +02:00
parent 62b69bc685
commit 68c5f4dd3e

View File

@ -12,6 +12,7 @@ Public Class frmSQLConfig
Private ReadOnly LogConfig As LogConfig
Public Property ConnectionString As String = String.Empty
Public Property FormTitle As String = ""
Public Sub New()
' Dieser Aufruf ist für den Designer erforderlich.
@ -32,6 +33,10 @@ Public Class frmSQLConfig
Private Sub frmSQLConfig_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim oConnectionString = ConnectionString
If FormTitle.Count > 0 Then
Text = $"{FormTitle} - {Text}"
End If
If Not oConnectionString = String.Empty Then
Dim oBuilder As SqlConnectionStringBuilder
Try