Ejemplo n.º 1
0
        protected override void InsertItem(int index, SeriesItem item)
        {
            SeriesNode node = item.Node;

            _map.Add(node, item);
            if (!_list.Contains(node))             // this method is also called when initializing the list from the list, so we need to check this to avoid re-adding
            {
                _list.Insert(index, node);
            }

            base.InsertItem(index, item);

            item.PropertyChanged += Item_PropertyChanged;
        }