public void Connect() { this.client = new TcpClient(); this.client.BeginConnect(this.server, this.port, this.ConnectCallback, null); if (this.beganConnecting != null) { this.beganConnecting(this, EventArgs.Empty); } }