Skip to content
This repository was archived by the owner on Feb 19, 2023. It is now read-only.

Commit 2eed514

Browse files
committed
refactor: simpify frmMain
1 parent c6a90ab commit 2eed514

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

frmMain.vb

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,6 +1827,11 @@ LocalErrorHandler:
18271827

18281828
End Sub
18291829

1830+
Private Sub InitSerialInput()
1831+
' Set focus to the input box and clear it
1832+
txtSerialNumber.Focus()
1833+
txtSerialNumber.Text = ""
1834+
End Sub
18301835

18311836
Private Sub TestExecSL1_AdviseClearReport(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles TestExecSL1.AdviseClearReport
18321837

@@ -2316,14 +2321,8 @@ LocalErrorHandler:
23162321
cmdLoadTestplan.Focus()
23172322
End If
23182323

2319-
_thread.Start()
2320-
End Sub
2321-
ReadOnly _thread As New Thread(AddressOf BackgroundThread)
2322-
2323-
Private Sub InitSerialInput()
2324-
' Set focus to the input box and clear it
2325-
txtSerialNumber.Focus()
2326-
txtSerialNumber.Text = ""
2324+
Dim thread As New Thread(AddressOf BackgroundThread)
2325+
thread.Start()
23272326
End Sub
23282327

23292328
ReadOnly _client As New TcpClient()

0 commit comments

Comments
 (0)