public DrawableFolder(DirectoryInfo parent, DrawableFolders drawable) { _parent = parent; _drawable = drawable; Directory = new DirectoryInfo(Path.Combine(parent.FullName, drawable.ToPath())); if (this.Exists) { Resources = new HashSet <string>(Directory.GetFiles().Select(f => f.Name)); } else { Resources = new HashSet <string>(); } }
public override string ToString() { return(_drawable.ToPath()); }