remove automation from init

This commit is contained in:
Jonathan Jenne 2019-09-13 13:44:21 +02:00
parent 3b9679f21e
commit 46d448236b
2 changed files with 1 additions and 16 deletions

View File

@ -64,16 +64,6 @@ Public Class ClassInit
Return True Return True
End Function End Function
Public Function InitAutomation() As Boolean
Try
Automation = New ClassAutomation(LogConfig)
Return True
Catch ex As Exception
Logger.Error(ex)
Return False
End Try
End Function
Private Function DecryptConnectionString(EncryptedConnectionString As String) As String Private Function DecryptConnectionString(EncryptedConnectionString As String) As String
Dim oBuilder As New SqlClient.SqlConnectionStringBuilder With { Dim oBuilder As New SqlClient.SqlConnectionStringBuilder With {
.ConnectionString = EncryptedConnectionString .ConnectionString = EncryptedConnectionString

View File

@ -1,7 +1,7 @@
Imports System.ComponentModel Imports System.ComponentModel
Imports System.Threading Imports System.Threading
Public NotInheritable Class frmSplash Public NotInheritable Class frmSplash
Private InitSteps As Integer = 4 Private InitSteps As Integer = 3
Private Worker As New BackgroundWorker() Private Worker As New BackgroundWorker()
Private MainForm As Form Private MainForm As Form
@ -60,11 +60,6 @@ Public NotInheritable Class frmSplash
ERROR_INIT = "DATABASE" ERROR_INIT = "DATABASE"
End If End If
Worker.ReportProgress(CalcProgress(4), "Initializing Automation")
If Init.InitAutomation() = False Then
ERROR_INIT = "AUTOMATION"
End If
Catch ex As Exception Catch ex As Exception
MsgBox("Unexpected Error in bw_DoWork: " & vbNewLine & ex.Message, MsgBoxStyle.Critical) MsgBox("Unexpected Error in bw_DoWork: " & vbNewLine & ex.Message, MsgBoxStyle.Critical)
End Try End Try