void UpdateDerivedTypes() { derivedTypes.Clear(); ITypeDefinition currentTypeDef = definition.Resolve(); if (currentTypeDef != null) { foreach (var derivedType in FindReferenceService.FindDerivedTypes(currentTypeDef, true)) { ITypeDefinitionModel derivedTypeModel = GetTypeDefinitionModel(currentTypeDef, derivedType); if (derivedTypeModel != null) { derivedTypes.Add(derivedTypeModel); } } } }
protected override void LoadChildren() { Children.Clear(); ITypeDefinition currentTypeDef = definition.Resolve(); if (currentTypeDef != null) { foreach (var derivedType in FindReferenceService.FindDerivedTypes(currentTypeDef, true)) { ITypeDefinitionModel derivedTypeModel = derivedType.GetModel(); if (derivedTypeModel != null) { Children.Add(SD.TreeNodeFactory.CreateTreeNode(derivedTypeModel)); } } } }