public void UnGroupSelected() { string strGroupID = string.Empty; for (int i = 0; i < SelectedtItems.Count; i++) { string strNameDesc; CG_ITEM_PROPS baseProps; m_objCG.GetItemBaseProps(SelectedtItems[i].ID, out strNameDesc, out baseProps); if ((baseProps.eType & eCG_ItemType.eCGIT_Group) != 0) { m_objCG.GroupRemoveAll(SelectedtItems[i].ID, eCG_GroupItemsRemoveType.eCGRT_Ungroup); m_objCG.RemoveItem(SelectedtItems[i].ID, 0); } } SelectItem("", true); UpdateItemsList(); }
protected virtual void Detach(CoMLCharGen charGen, string id) { charGen.RemoveItem(id, 0); }