public List<byte> ConvertTagToFiveByteControlCode(int startIndex, byte field2Type, byte normalType, short arg)
{
List<byte> code = new List<byte>();
byte[] temp;
code.Add(0x1A);
code.Add(0x05);
switch (field2Type)
{
case 0:
code.Add(0x00);
code.Add(0x00);
code.Add(normalType);
break;
case 1:
code.Add(field2Type);
temp = BitConverter.GetBytes(Convert.ToInt16(arg));
code.Add(temp[1]);
code.Add(temp[0]);
break;
case 2:
code.Add(field2Type);
temp = BitConverter.GetBytes(Convert.ToInt16(arg));
code.Add(temp[1]);
code.Add(temp[0]);
break;
case 3:
code.Add(field2Type);
temp = BitConverter.GetBytes(Convert.ToInt16(arg));
code.Add(temp[1]);
code.Add(temp[0]);
break;
}
return code;
}