void IConnection.SendKeyDown(Key key) { if (!started) { throw new InvalidOperationException("Connessione non è stata ancora avviata. Chiamata Start() non effetuata"); } ServerConnection currentServer = null; if (serverAttivoIndex < 0) { Trace.TraceWarning("ServerAttivoIndex è minore di 0. Index:{0}. In SendKeyDown() ", serverAttivoIndex); return; } currentServer = serverConnessi[serverAttivoIndex]; currentServer.SendKeyDown(key); }