public void ThreadDone(object sender, EventArgs e) { if (((string)sender).Equals("ping")) { PacketThread.Start(); } }
public void Connect() { TClient.Connect(IPAddress.Parse(IP), Variables.Port); // Connect to the server Stream = TClient.GetStream(); // Get the server stream PacketThread.Start(); // Start the packet update thread Variables.MainForm.IsClientConnected = true; }