Ejemplo n.º 1
0
        /// <summary>
        /// Ask for config from server
        /// </summary>

        public void getConfig()
        {
            WebCommunicator client = WebCommunicator.Instance;

            client.sendToServer(new TCPEventArgs((int)CommandEnum.GetConfigCommand, null));
            // System.Threading.Thread.Sleep(500); //In order to show the info smoothly
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Remove the handler
        /// </summary>
        /// <param name="handler">the handler to be removed</param>

        public void RemoveHandler(string handler)
        {
            WebCommunicator client = WebCommunicator.Instance;

            client.sendToServer(new TCPEventArgs((int)CommandEnum.CloseCommand, handler));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Ask from server the log from the start of the service
        /// </summary>

        public void getCurrentLog()
        {
            WebCommunicator client = WebCommunicator.Instance;

            client.sendToServer(new TCPEventArgs((int)CommandEnum.LogCommand, null));
        }