コード例 #1
0
        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);
        }
コード例 #2
0
 protected override void LoadImage()
 {
     _image = ProjectUtils.GetTypeImage(_type);
 }