Exemplo n.º 1
0
        public void Delete(int ndxItem)
        {
            Debug.Assert(IsConnected);
            Debug.Assert(ndxItem < Count);

            int xsDatum = m_mapper.ToSourceIndex(ndxItem);

            m_source.Delete(xsDatum);
        }
Exemplo n.º 2
0
        public void Delete(IList <int> indices)
        {
            Assert(IsConnected);
            Assert(indices != null);
            Assert(indices.Any(ndx => ndx < 0 || ndx >= Count) == false);

            using (Lock())
            {
                int[] srcIndices = indices.Select(n => m_mapper.ToSourceIndex(n)).ToArray();
                m_src.Delete(srcIndices);
            }
        }