32 lines
801 B
C#
32 lines
801 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Media;
|
|
using GraphX;
|
|
using JD.AssetBrowser.ViewModel;
|
|
|
|
namespace JD.AssetDependencies.Graph
|
|
{
|
|
public class DataVertex : VertexBase
|
|
{
|
|
public AssetViewModel File { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return File.Name;
|
|
}
|
|
|
|
public SolidColorBrush Color { get; set; }
|
|
|
|
public string Name => File.Name;
|
|
|
|
public string Path => File.RelativePath;
|
|
|
|
public int DependencyCount => File.Model.Dependencies.Count;
|
|
|
|
public int ReferencedCount => File.Model.ReferencedBy.Count;
|
|
|
|
public IEnumerable<Control> ContextMenuItems => File.ContextMenuItems;
|
|
}
|
|
}
|