Beispiel #1
0
        protected void UnInitializeIndicator(Indicator indicator)
        {
            indicator.UnInitialize();

            if (IndicatorUnInitializedEvent != null)
            {
                IndicatorUnInitializedEvent(this, indicator);
            }
        }
Beispiel #2
0
        public void RemoveIndicator(Indicator indicator)
        {
            indicator.UnInitialize();

            bool removeResult;

            lock (this)
            {
                removeResult = _indicators.Remove(indicator);
            }

            if (IndicatorUnInitializedEvent != null)
            {
                IndicatorUnInitializedEvent(this, indicator);
            }

            if (removeResult && IndicatorRemovedEvent != null)
            {
                IndicatorRemovedEvent(this, indicator);
            }
        }
        protected void UnInitializeIndicator(Indicator indicator)
        {
            indicator.UnInitialize();

            if (IndicatorUnInitializedEvent != null)
            {
                IndicatorUnInitializedEvent(this, indicator);
            }
        }
        public void RemoveIndicator(Indicator indicator)
        {
            indicator.UnInitialize();

            bool removeResult;
            lock (this)
            {
                removeResult = _indicators.Remove(indicator);
            }

            if (IndicatorUnInitializedEvent != null)
            {
                IndicatorUnInitializedEvent(this, indicator);
            }

            if (removeResult && IndicatorRemovedEvent != null)
            {
                IndicatorRemovedEvent(this, indicator);
            }
        }