예제 #1
0
        void IConnection.SendMouseMove(int x, int y)
        {
            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 SendMouseMove() ", serverAttivoIndex);
                return;
            }
            currentServer = serverConnessi[serverAttivoIndex];
            currentServer.SendMoveMouse(x, y);
        }