Exemplo n.º 1
0
        public void RemoveGraphic(IStrategyGraphic graphic)
        {
            this.graphics.Remove(graphic);
            IDataKey dataKey = graphic.DataKey;

            if (dataKey == null)
            {
                return;
            }
            if (dataKey is KLineKey)
            {
                klineKeies.Remove((KLineKey)dataKey);
            }
            else if (dataKey is TimeLineKey)
            {
                timeLineKeies.Remove((TimeLineKey)dataKey);
            }
        }
Exemplo n.º 2
0
        public void AddGraphic(IStrategyGraphic graphic)
        {
            this.graphics.Add(graphic);
            IDataKey dataKey = graphic.DataKey;

            if (dataKey == null)
            {
                return;
            }
            dic_GraphicKey_Container.Add(dataKey, graphic);
            graphicKeies.Add(dataKey);
            if (dataKey is KLineKey)
            {
                klineKeies.Add((KLineKey)dataKey);
            }
            else if (dataKey is TimeLineKey)
            {
                timeLineKeies.Add((TimeLineKey)dataKey);
            }
        }