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
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
Dim oBuilder As New SqlClient.SqlConnectionStringBuilder With {
.ConnectionString = EncryptedConnectionString

View File

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