Esempio n. 1
0
        public void InitializeRows()
        {
            int x, y;

            if (m_oRowCollection != null)
            {
                for (x = m_oRowCollection.Count - 1; x >= 0; x--)
                {
                    m_oRowCollection.Remove(x);
                }
            }
            m_oRowCollection = new Row_Collection();
            for (x = 0; x <= ReferenceListView.Items.Count - 1; x++)
            {
                ListViewAlternateBackgroundColors.RowItem oItem = new RowItem();
                for (y = 0; y <= ReferenceListView.Items[x].SubItems.Count - 1; y++)
                {
                    ListViewAlternateBackgroundColors.ColumnItem oColumnItem = new ColumnItem();
                    oColumnItem.ReferenceBackgroundColor            = this.ReferenceBackgroundColor;
                    oColumnItem.ReferenceAlternateBackgroundColor   = this.ReferenceAlternateBackgroundColor;
                    oColumnItem.ReferenceSelectedRowBackgroundColor = this.ReferenceSelectedRowBackgroundColor;
                    oItem.m_oColumnCollection.Add(oColumnItem);
                }
                m_oRowCollection.Add(oItem);
            }
        }
Esempio n. 2
0
        public void InitializeRowCollection()
        {
            int x;

            if (m_oRowCollection != null)
            {
                for (x = m_oRowCollection.Count - 1; x >= 0; x--)
                {
                    m_oRowCollection.Remove(x);
                }
            }
            m_oRowCollection = new Row_Collection();
        }