AttachItemToThis() public method

public AttachItemToThis ( CollapseItem itemToAdd ) : CollapseItem
itemToAdd CollapseItem
return CollapseItem
コード例 #1
0
        public void MoveLeftOne()
        {
            if (parentItem != null)
            {
                parentItem.mItems.Remove(this);
                parentItem = parentItem.parentItem;

                if (parentItem != null)
                {
                    parentItem.AttachItemToThis(this);
                }
                else
                {
                    if (null != mParentBox as ListBoxBase)
                    {
                        ((ListBoxBase)mParentBox).mItems.Add(this);
                    }
                }
            }
        }
コード例 #2
0
ファイル: CollapseItem.cs プロジェクト: vchelaru/FlatRedBall
        public void MoveLeftOne()
        {
            if (parentItem != null)
            {
                parentItem.mItems.Remove(this);
                parentItem = parentItem.parentItem;

                if (parentItem != null)
                    parentItem.AttachItemToThis(this);
                else
                {
                    if (null != mParentBox as ListBoxBase)
                        ((ListBoxBase)mParentBox).mItems.Add(this);
                }
            }
        }