Пример #1
0
        private static void ISCPSocket_OnPacketRecieved(string str)
        {
            HGJConsole.Regions["recv"].WriteContent("Recieved: " + str);
            ISCPPacket r = ISCPPacket.ParsePacket(str);

            if (r is Power)
            {
                _powerStatus = (r.Command == "!1PWR01");
            }
            else if (r is Input)
            {
                _inputStatus = r.ToString();
            }
            HGJConsole.Regions["recv"].WriteContent(r.ToString(), true);
        }