public TypeViewModel(TypeDeclaration type, AD.ProjectType projectType, ViewModel parent) : base(parent) { _type = type; _projectType = projectType; _typeKind = ProjectUtils.GetTypeKind(type); Caption = NodePrinter.Print(type, true, true); Image = ProjectUtils.GetTypeImage(type, _typeKind); }
protected override void LoadImage() { _image = ProjectUtils.GetTypeImage(_type); }