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