private byte[] CCID = new byte[20];       // CCID of device

        public PacketResultUpdate(List<byte> data)
        {
            if (Parsing(ref data) == false)
            {
                MessageBox.Show("Not correct data", "Warning", MessageBoxButton.OK);
                return;
            }
            Packet_Time = WorkBuffer.GetUInt64(ref data);

            for (int i = 0; i < Version.Length; i++)
            {
                Version[i] = WorkBuffer.GetByte(ref data);
            }
            Update = (E_Status_Update)WorkBuffer.GetByte(ref data);

            for (int i = 0; i < CCID.Length; i++)
            {
                CCID[i] = WorkBuffer.GetByte(ref data);
            }
            CRC32 = WorkBuffer.GetUInt32(ref data);
        }
        private byte[] CCID = new byte[20]; // CCID of device

        public PacketDeviceInfo(List <byte> data)
        {
            if (Parsing(ref data) == false)
            {
                MessageBox.Show("Not correct data", "Warning", MessageBoxButton.OK);
                return;
            }
            Packet_Time = WorkBuffer.GetUInt64(ref data);
            Num         = WorkBuffer.GetByte(ref data);

            Error   = (E_Device_Error)WorkBuffer.GetByte(ref data);
            Warning = (E_Device_Warning)WorkBuffer.GetByte(ref data);
            Info    = (E_Device_Info)WorkBuffer.GetByte(ref data);

            for (int i = 0; i < CCID.Length; i++)
            {
                CCID[i] = WorkBuffer.GetByte(ref data);
            }

            CRC32 = WorkBuffer.GetUInt32(ref data);
        }
        public PacketTelemetry(List <byte> data)
        {
            if (Parsing(ref data) == false)
            {
                MessageBox.Show("Not correct data", "Warning", MessageBoxButton.OK);
                return;
            }
            Packet_Time = WorkBuffer.GetUInt64(ref data);
            Num         = WorkBuffer.GetUInt16(ref data);

            for (int i = 0; i < CCID.Length; i++)
            {
                CCID[i] = WorkBuffer.GetByte(ref data);
            }

            for (int i = 0; i < Num; i++)
            {
                TMList.Add(new TelemetryType(data));
            }

            CRC32 = WorkBuffer.GetUInt32(ref data);
        }