Exemplo n.º 1
0
        public RscTreeLbItemBase(RscTreeLbItemList oHolder, RscTreeLbItemBase oParent)
        {
            m_Holder = oHolder;
            m_Parent = oParent;

            DetailsBackColor = Holder.Theme.ThemeColors.TreeDescBack;
            DetailsForeColor = Holder.Theme.ThemeColors.TreeDescFore;
        }
Exemplo n.º 2
0
        public void Insert(RscTreeLbItemBase it)
        {
            m_bInsertCalled = true;
            m_iIndexOfNext++;
            Holder.Insert(m_iIndexOfNext, it);

            if (!m_bHasChildren)                       //This is Leaf (at this time)...
            {
                if (!it.m_bLeaf && !it.m_bDetailsOnly) //Child is not Leaf...
                {
                    m_bHasChildren = true;

                    RaisePropertyChanged("BackBrush");
                    RaisePropertyChanged("ForeBrush");
                }
            }
        }