예제 #1
0
        public void Dispose()
        {
            if (m_tableOfContent != null)
            {
                Debug.Assert(m_tableOfContent.VirtualPages.Count == 0);
                m_tableOfContent.Dispose();
                m_tableOfContent = null;
            }

            m_pagingManager = null;
            this.IsDisposed = true;
        }
예제 #2
0
        public VirtualList(VirtualPageManager pagingManager, int virtualCount)
        {
            if (pagingManager == null)
            {
                throw new ArgumentNullException("pagingManager");
            }

            pagingManager.ManageList(this);

            m_tableOfContent = new VirtualListTableOfContent(8);

            m_virtualCount = virtualCount;
        }