void IconClick(CollapseItem collapseItem, ListBoxBase listBoxBase, ListBoxIcon listBoxIcon) { if (listBoxIcon.Texture == mCopyLocallyTexture) { listBoxIcon.Texture = mMakeRelativeTexture; } else { listBoxIcon.Texture = mCopyLocallyTexture; } }
public CollapseItem AddItem(string fileName) { CollapseItem newItem = mListBox.AddItem(fileName); ListBoxIcon icon = newItem.AddIcon(mCopyLocallyTexture, "ActionIcon"); icon.IconClick += new ListBoxFunction(IconClick); icon.ScaleX = icon.ScaleY = 1.1f; removeFilesAlreadyMarkedRelative(); return(newItem); }