internal CSingleCodeGroup(ref PolicyLevel pl, ref CodeGroup cg, bool fReadOnly) { ReadOnly = fReadOnly; m_sGuid = "E1768EA0-51D6-42ea-BA97-C9BC7F4C5CC0"; m_sHelpSection = ""; if (cg.Name != null && cg.Name.Length > 0) { m_sDisplayName = cg.Name; } else { m_sDisplayName = CResourceStore.GetString("CSingleCodeGroup:NoName"); } m_aPropSheetPage = null; if (cg is UnionCodeGroup) { m_hIcon = CResourceStore.GetHIcon("singlecodegroup_ico"); m_oResults = new CSingleCodeGroupTaskPad(this, cg); } else { m_hIcon = CResourceStore.GetHIcon("customcodegroup_ico"); m_oResults = new CNonUnionCGTaskPad(this, cg); } m_cg = cg; m_cgOld = m_cg.Copy(); m_pl = pl; m_fIAmDeleted = false; }// CSingleCodeGroup
}// RemoveChildCodegroup private static void RefreshCodeGroup(CodeGroup cgParent, CodeGroup cgChild, int nChildIndex) { CodeGroup cgParentCopy = cgParent.Copy(); cgParent.Children = new ArrayList(); for (int i = 0; i < cgParentCopy.Children.Count; i++) { if (i != nChildIndex) { cgParent.AddChild((CodeGroup)cgParentCopy.Children[i]); } else { cgParent.AddChild(cgChild); } } }// RefreshCodegroup