Exemplo n.º 1
0
        public void AddChannel(Channels.Channel pChannel)
        {
            if (pChannel == null)
            {
                return;
            }

            //Check if the channel is in the liste
            Channels.AutoChannel chan = new DmxFramework.Channels.AutoChannel(pChannel, Channels.ChangeOrigin.AutoMode);
            chan.ProgressMode = mProgressive;
            chan.NumberOfStep = mNumberOfStep;

            if (pChannel.Function == DmxFramework.Channels.ChannelFunction.Pan && mLimitEnabled)
            {
                chan.Min = mPanMin;
                chan.Max = mPanMax;
            }
            else if (pChannel.Function == DmxFramework.Channels.ChannelFunction.Tilt && mLimitEnabled)
            {
                chan.Min = mTiltMin;
                chan.Max = mTiltMax;
            }

            lock (mAutoChanList)
            {
                mAutoChanList.Add(chan);
            }
        }
Exemplo n.º 2
0
        public void AddChannel(Channels.Channel pChannel)
        {
            if (pChannel == null)
            {
                return;
            }

            //Check if the channel is in the liste
            Channels.AutoChannel chan = new DmxFramework.Channels.AutoChannel(pChannel, Channels.ChangeOrigin.AutoMode);
            chan.ProgressMode = Progressive;
            chan.NumberOfStep = mNumberOfStep;
            lock (mAutoChanList)
            {
                mAutoChanList.Add(chan);
            }
        }