private void StartButton_Click(Object Sender, EventArgs e) { if (IPComboBox.Text == ""){ MessageBox.Show("Please Select an IP"); return; } StartStopButtonToggle(); Listen p_listen = new Listen(p_PRE); p_listen.HostIP = IPComboBox.Text; p_L1 = new Thread(new ThreadStart(p_listen.RunReciever)); p_L1.Start(); }
private void StartButton_Click(Object Sender, EventArgs e) { if (IPComboBox.Text == "") { MessageBox.Show("Please Select an IP"); return; } StartStopButtonToggle(); Listen p_listen = new Listen(p_PRE); p_listen.HostIP = IPComboBox.Text; p_L1 = new Thread(new ThreadStart(p_listen.RunReciever)); p_L1.Start(); }