/// <summary>
        /// Se encontro un server
        /// </summary>
        internal void addServerToList(TgcSocketClient.TgcAvaliableServer server)
        {
            dataGridViewAvaliableServers.Rows.Add(dataGridViewAvaliableServers.Rows.Count,
                server.HostName,
                server.Ip);

            //seleccionar el primer elemento de la tabla
            dataGridViewAvaliableServers.Enabled = true;
            dataGridViewAvaliableServers.Rows[0].Selected = true;
            dataGridViewAvaliableServers_RowEnter(null, null);
        }
        /// <summary>
        /// Crea el modificador de Networking
        /// </summary>
        /// <param name="varName">Identificador del modifier</param>
        /// <param name="serverName">Nombre default que va a usar el servidor</param>
        /// <param name="clientName">Nombre default que va a usar cada cliente</param>
        /// <param name="port">Puerto en el cual se va a crear y buscar conexiones</param>
        public TgcNetworkingModifier(string varName, string serverName, string clientName, int port)
            : base(varName)
        {
            server = new TgcSocketServer();
            client = new TgcSocketClient();
            this.port = port;
            clientConnected = false;
            networkingControl = new TgcNetworkingModifierControl(this, serverName, clientName);
            avaliableServers = new List<TgcSocketClient.TgcAvaliableServer>();

            newConnectedClients = new Queue<TgcSocketClientInfo>();
            disconnectedClients = new Queue<TgcSocketClientInfo>(); ;

            contentPanel.Controls.Add(networkingControl);
        }
        /// <summary>
        /// Crea el modificador de Networking
        /// </summary>
        /// <param name="varName">Identificador del modifier</param>
        /// <param name="serverName">Nombre default que va a usar el servidor</param>
        /// <param name="clientName">Nombre default que va a usar cada cliente</param>
        /// <param name="port">Puerto en el cual se va a crear y buscar conexiones</param>
        public TgcNetworkingModifier(string varName, string serverName, string clientName, int port)
            : base(varName)
        {
            server            = new TgcSocketServer();
            client            = new TgcSocketClient();
            this.port         = port;
            clientConnected   = false;
            networkingControl = new TgcNetworkingModifierControl(this, serverName, clientName);
            avaliableServers  = new List <TgcSocketClient.TgcAvaliableServer>();

            newConnectedClients = new Queue <TgcSocketClientInfo>();
            disconnectedClients = new Queue <TgcSocketClientInfo>();;

            contentPanel.Controls.Add(networkingControl);
        }
 /// <summary>
 /// Agregar server encontrado a la lista de servers disponibles
 /// </summary>
 internal void addServerToList(TgcSocketClient.TgcAvaliableServer server)
 {
     serversDialog.addServerToList(server);
 }