public void RemoveSelf()
{
for (int i = mItems.Count - 1; i > -1; i--)
{
mItems[i].parentItem = null;
if (null != mParentBox as CollapseListBox)
((CollapseListBox)mParentBox).AttachItem(mItems[i]);
}
if (parentItem == null)
{
if (null != mParentBox as ListBoxBase)
{
((ListBoxBase)mParentBox).mItems.Remove(this);
}
}
else
{
parentItem.mItems.Remove(this);
parentItem.FixCollapseIcon();
}
if (((ListBoxBase)mParentBox).GetFirstHighlightedItem() == this)
{
((ListBoxBase)mParentBox).HighlightItem((CollapseItem)null);
}
mParentBox = null;
parentItem = null;
}