Beispiel #1
0
        public void Stop()
        {
            if (bIsStopped)
            {
                return;
            }
            bIsStopped = true;

            try
            {
                (new Logger()).WriteDebug("stop_in");
                if (null != _cPlaylist && _cPlaylist.eStatus != BTL.EffectStatus.Stopped)
                {
                    _cPlaylist.Stop();
                }
            }
            catch (Exception ex)
            {
                (new Logger()).WriteError(ex);
            }
            if (null != Stopped)
            {
                Plugin.EventSend(Stopped, this);
            }
            (new Logger()).WriteDebug("stopped");
        }
Beispiel #2
0
        void RemoveOnStopped(Effect cSender, Effect cEffect)
        {
            if (_bStopping)
            {
                if (cEffect.oTag == "voting_imagesL_out")
                {
                    _cPLPhotoLeft.Stop();
                }
                if (cEffect.oTag == "voting_imagesR_out")
                {
                    _cPLPhotoRight.Stop();
                }
            }

            lock (_aLoops)
            {
                if (_aLoops.Contains(cEffect))
                {
                    _aLoops.Remove(cEffect);
                }
            }
        }