Ejemplo n.º 1
0
 public void ThreadDone(object sender, EventArgs e)
 {
     if (((string)sender).Equals("ping"))
     {
         PacketThread.Start();
     }
 }
Ejemplo n.º 2
0
        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;
        }