Zooflow: Readd Load_recent_files, add second service config

This commit is contained in:
Jonathan Jenne
2022-05-02 16:26:12 +02:00
parent 9a5207b316
commit 8499e84586
22 changed files with 215 additions and 2502 deletions

View File

@@ -311,4 +311,33 @@ Public Class frmAdmin_Start
Return False
End If
End Function
Private Sub btnSecondServiceConnection_ItemClick(sender As Object, e As ItemClickEventArgs) Handles btnSecondServiceConnection.ItemClick
If My.SystemConfig.AppServerConfigDevelopment = String.Empty Then
Dim oAnswer = MsgBox("Es ist keine zweite Dienstkonfiguration vorhanden. Wollen Sie nun eine hinterlegen?", MsgBoxStyle.Question Or MsgBoxStyle.YesNo, Text)
If oAnswer = MsgBoxResult.Yes Then
Dim oForm As New frmServiceConfig() With {
.ServiceAddress = "",
.ServiceOnline = False
}
oForm.ShowDialog()
My.SystemConfig.AppServerConfigDevelopment = oForm.ServiceAddress
My.SystemConfigManager.Save()
Else
' Cancel
Exit Sub
End If
End If
Dim oServiceAddress = My.SystemConfig.AppServerConfig
If My.Application.Service.Client.ServerAddress = My.SystemConfig.AppServerConfig Then
oServiceAddress = My.SystemConfig.AppServerConfigDevelopment
Else
oServiceAddress = My.SystemConfig.AppServerConfig
End If
My.Application.Service.Client = New Modules.EDMI.API.Client(My.LogConfig, oServiceAddress)
End Sub
End Class