Exemple #1
0
        public string LineOut()
        {
            StringBuilder ret = new StringBuilder();

            if (isViz)
            {
                if (deviceType == DeviceType.LOR)
                {
                    ret.Append(utils.SetKey(FIELDDeviceType, 1));
                }
                else if (deviceType == DeviceType.DMX)
                {
                    ret.Append(utils.SetKey(FIELDDeviceType, 7));
                }
                ret.Append(utils.SetKey(FIELDNetwork, network));
                ret.Append(utils.SetKey(FIELDController, unit));
                ret.Append(utils.SetKey(FIELDChannel, circuit));
            }
            else
            {
                if (deviceType == DeviceType.LOR)
                {
                    ret.Append(utils.SetKey(FIELDdeviceType, SeqEnums.DeviceName(deviceType)));
                    ret.Append(utils.SetKey(FIELDunit, unit));
                    ret.Append(utils.SetKey(FIELDcircuit, circuit));
                    if (network != utils.UNDEFINED)
                    {
                        ret.Append(utils.SetKey(FIELDnetwork, network));
                    }
                }
                else if (deviceType == DeviceType.DMX)
                {
                    ret.Append(utils.SetKey(FIELDdeviceType, SeqEnums.DeviceName(deviceType)));
                    ret.Append(utils.SetKey(FIELDcircuit, circuit));
                    ret.Append(utils.SetKey(FIELDnetwork, network));
                }
                else if (deviceType == DeviceType.Dasher)
                {
                    ret.Append(utils.SetKey(FIELDdeviceType, SeqEnums.DeviceName(deviceType)));
                    ret.Append(utils.SetKey(FIELDunit, unit));
                    ret.Append(utils.SetKey(FIELDcircuit, circuit));
                }
            }
            return(ret.ToString());
        }
Exemple #2
0
        public string LineOut()
        {
            string ret = "";

            if (deviceType == DeviceType.LOR)
            {
                ret += FIELDdeviceType + utils.FIELDEQ + SeqEnums.DeviceName(deviceType) + utils.ENDQT;
                ret += FIELDunit + utils.FIELDEQ + unit.ToString() + utils.ENDQT;
                ret += FIELDcircuit + utils.FIELDEQ + circuit.ToString() + utils.ENDQT;
                if (network != utils.UNDEFINED)
                {
                    ret += FIELDnetwork + utils.FIELDEQ + network.ToString() + utils.ENDQT;
                }
            }
            else if (deviceType == DeviceType.DMX)
            {
                ret += FIELDdeviceType + utils.FIELDEQ + SeqEnums.DeviceName(deviceType) + utils.ENDQT;
                ret += FIELDcircuit + utils.FIELDEQ + circuit.ToString() + utils.ENDQT;
                ret += FIELDnetwork + utils.FIELDEQ + network.ToString() + utils.ENDQT;
            }
            return(ret);
        }