コード例 #1
0
        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);
                    }
                }
            }
        }
コード例 #2
0
        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));
                    }
                }
            }
        }