Exemple #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="parent"></param>
        public GLItem(GlacialList 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 += new ChangedEventHandler(SubItemCollection_Changed); // this will only happen when a new item is created
        }
Exemple #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public GLItem()
        {
            if (this.Parent != null)
            {
                m_SubItems = new GLSubItemCollection(this.Parent);
            }
            else
            {
                m_SubItems = new GLSubItemCollection();
            }

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