public PropertyViewModel(PropertyDeclaration property, AD.ProjectProperty projectProperty, ViewModel parent) : base(parent) { _property = property; _projectProperty = projectProperty; Caption = NodePrinter.Print(_property); Image = ImageType.Node_Properties; }
internal MethodViewModel(MethodDeclaration method, AD.ProjectMethod projectMethod, ViewModel parent) : base(parent) { _method = method; _projectMethod = projectMethod; Caption = NodePrinter.Print(method); Image = ProjectUtils.GetMethodImage(method); }
public EventViewModel(EventDeclaration e, AD.ProjectEvent projectEvent, ViewModel parent) : base(parent) { _event = e; _projectEvent = projectEvent; _assemblyViewModel = FindParent <AssemblyViewModel>(true); Caption = NodePrinter.Print(_event); Image = ImageType.Node_Event; }
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); }
public FieldViewModel(FieldDeclaration field, AD.ProjectField projectField, ViewModel parent) : base(parent) { _field = field; _projectField = projectField; var typeViewModel = FindParent <TypeViewModel>(); _fieldKind = ProjectUtils.GetFieldKind(field, typeViewModel.Type, typeViewModel.TypeKind); Caption = NodePrinter.Print(field, _fieldKind); Image = ProjectUtils.GetFieldImage(field, _fieldKind); }
internal SearchTypeItem(TypeDeclaration type) { _type = type; _caption = NodePrinter.Print(_type); }