private void CreateStart(int length, string Addr, string IP, comm.DataTyte dataTyte, string ThreadCount = null) { if (!radioButton1.Checked) { PLCTextBox = new LIBnodavePLC(); } else { PLCTextBox = new SenmensPLC(); } ThreadingTest threadingTest = new ThreadingTest(length, Addr, IP, dataTyte, PLCTextBox, ThreadCount); threadingTest.MessageEventHandler += UpdateUI; threadingTest.AsyncStart(); threadingTests.Add(threadingTest); }