Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FrmRemoteDesktop"/> class using the given client.
        /// </summary>
        /// <param name="client">The client used for the remote desktop form.</param>
        public FrmRemoteDesktop(Client client)
        {
            _connectClient        = client;
            _remoteDesktopHandler = new RemoteDesktopHandler(client);
            _keysPressed          = new List <Keys>();

            RegisterMessageHandler();
            InitializeComponent();
        }
Exemplo n.º 2
0
        public void OnDataRecieved(object[] data)
        {
            NetworkCommand command = (NetworkCommand)data[0];

            if (command == NetworkCommand.RemoteChat)
            {
                RemoteChatHandler.Handle(data);
            }
            if (command == NetworkCommand.RemoteDesktop)
            {
                RemoteDesktopHandler.Handle(data);
            }
        }
Exemplo n.º 3
0
        public void OnDataRetrieved(IClient client, object[] data)
        {
            NetworkCommand command = (NetworkCommand)data[0];

            switch (command)
            {
            case NetworkCommand.RemoteChat:
                RemoteChatHandler.Handle(client, data);
                break;

            case NetworkCommand.RemoteDesktop:
                RemoteDesktopHandler.Handle(client, data);
                break;
            }
        }
Exemplo n.º 4
0
 public void OnPluginLoad(IClientHost server)
 {
     RemoteChatHandler.SetNetworkHost(server);
     RemoteDesktopHandler.SetNetworkHost(server);
 }
Exemplo n.º 5
0
 public void OnClientDisconnect(IClient client)
 {
     RemoteChatHandler.ClientDisconnect(client);
     RemoteDesktopHandler.Disconnect(client);
 }
Exemplo n.º 6
0
 public void OnClientConnect(IClient client)
 {
     RemoteChatHandler.NewClient(client);
     RemoteDesktopHandler.NewClient(client);
 }