Exemplo n.º 1
0
        protected TreeViewItemViewModel(TreeViewItemViewModel parent, bool lazyLoadChildren)
        {
            Parent = parent;

            Children = new ObservableCollection <TreeViewItemViewModel>();

            if (lazyLoadChildren)
            {
                Children.Add(DummyChild);
            }
        }
        public NugetCollectionViewModel(IEnumerable <NugetPackage> nugets, TreeViewItemViewModel parent, ISolutionManager solutionManager) : base(parent, false)
        {
            Name       = $"Nugets [{nugets.Count()}]";
            HasPreview = false;

            foreach (var nuget in nugets.OrderBy(x => x.Name))
            {
                var pvm = new NugetViewModel(nuget, this, solutionManager);

                Children.Add(pvm);
            }
        }
Exemplo n.º 3
0
        public ProjectCollectionViewModel(IEnumerable <ProjectReference> projects, TreeViewItemViewModel parent) : base(parent, false)
        {
            Name       = $"Projects [{projects.Count()}]";
            HasPreview = false;

            foreach (var project in projects.OrderBy(x => x.Name))
            {
                var pvm = new ProjectRefViewModel(project, this, false);

                Children.Add(pvm);
            }
        }
Exemplo n.º 4
0
        public ProjectViewModel(ProjectDetails project, TreeViewItemViewModel parent, bool lazyLoadChildren, ISolutionManager solutionManeger) : base(parent, lazyLoadChildren)
        {
            Project   = project;
            Name      = Path.GetFileName(project.Name);
            FullName  = project.AbsolutePath;
            IsNetCore = project.IsNetCore;

            Children.Add(new NugetCollectionViewModel(Project.Nugets, this, solutionManeger));
            Children.Add(new ProjectCollectionViewModel(Project.ProjectReferences, this));
            Children.Add(new ReferencesCollectionViewModel(Project.DirectReferences, this));
            Children.Add(new TypesCollectionViewModel(this, project.AbsolutePath, parent.FullName, solutionManeger));
            Children.Add(new ReferencedCollectionViewModel(this));
            Children.Add(new SourceCodesCollectionViewModel(this, project.SourceCodes));
        }
 public NugetReferenceViewModel(NugetProjectMap map, TreeViewItemViewModel parent) : base(parent, false)
 {
     Name     = map.Project.Name;
     FullName = map.Project.AbsolutePath;
     Map      = map;
 }
Exemplo n.º 6
0
 public ReferencedViewModel(TreeViewItemViewModel parent, ProjectDetails referencedProject) : base(parent, false)
 {
     Name     = $"{referencedProject.Name}";
     FullName = $"{referencedProject.AbsolutePath}";
     Project  = referencedProject;
 }
 public EventViewModel(EventMember member, TreeViewItemViewModel parent) : base(member, parent)
 {
 }
Exemplo n.º 8
0
 public ProjectDirectRefViewModel(ProjectReference projectRef, TreeViewItemViewModel parent, bool lazyLoadChildren) : base(parent, lazyLoadChildren)
 {
     ProjectReference = projectRef;
     Name             = ProjectReference.Name;
     FullName         = ProjectReference.FilePath;
 }
 public EnumViewModel(EnumDetails type, TreeViewItemViewModel parent) : base(type, parent)
 {
 }
 public MethodViewModel(MethodMember member, TreeViewItemViewModel parent) : base(member, parent)
 {
 }
 public ReferencedCollectionViewModel(TreeViewItemViewModel parent) : base(parent, false)
 {
     RefreshName();
     HasPreview = false;
 }
Exemplo n.º 12
0
 public MemberViewModel(Member member, TreeViewItemViewModel parent) : base(parent, false)
 {
     Member   = member;
     Name     = member.Name;
     FullName = member.Name;
 }
Exemplo n.º 13
0
 public StructViewModel(StructDetails type, TreeViewItemViewModel parent) : base(type, parent)
 {
 }
 public SourceCodeViewModel(TreeViewItemViewModel parent, string sourceCode) : base(parent, false)
 {
     Name     = $"{Path.GetFileName(sourceCode)}";
     FullName = $"{sourceCode}";
 }
Exemplo n.º 15
0
 public ClassViewModel(ClassDetails type, TreeViewItemViewModel parent) : base(type, parent)
 {
 }
 public PropertyViewModel(PropertyMember member, TreeViewItemViewModel parent) : base(member, parent)
 {
 }
 public InterfaceViewModel(InterfaceDetails type, TreeViewItemViewModel parent) : base(type, parent)
 {
 }
Exemplo n.º 18
0
 public FieldViewModel(FieldMember member, TreeViewItemViewModel parent) : base(member, parent)
 {
 }