コード例 #1
0
        /// <summary>
        ///   Constructor
        /// </summary>
        /// <param name = "parent"></param>
        public CListItem(CListView parent)
        {
            m_SubItems        = new GLSubItemCollection(parent);
            m_SubItems.Parent = parent;

            Parent = parent;                                    // this has to be after the sub item set becuase it tries to use the subitems

            SubItems.ChangedEvent += SubItemCollection_Changed; // this will only happen when a new item is created
        }
コード例 #2
0
        /// <summary>
        ///   Constructor
        /// </summary>
        public CListItem()
        {
            if (Parent != null)
            {
                m_SubItems = new GLSubItemCollection(Parent);
            }
            else
            {
                m_SubItems = new GLSubItemCollection();
            }

            SubItems.ChangedEvent += SubItemCollection_Changed; // this will only happen when a new item is created
        }
コード例 #3
0
        /// <summary>
        ///   Constructor
        /// </summary>
        /// <param name = "parent"></param>
        public CListItem(CListView parent)
        {
            m_SubItems = new GLSubItemCollection(parent);
            m_SubItems.Parent = parent;

            Parent = parent; // this has to be after the sub item set becuase it tries to use the subitems

            SubItems.ChangedEvent += SubItemCollection_Changed; // this will only happen when a new item is created
        }
コード例 #4
0
        /// <summary>
        ///   Constructor
        /// </summary>
        public CListItem()
        {
            if (Parent != null)
                m_SubItems = new GLSubItemCollection(Parent);
            else
                m_SubItems = new GLSubItemCollection();

            SubItems.ChangedEvent += SubItemCollection_Changed; // this will only happen when a new item is created
        }