Ejemplo n.º 1
0
        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>();
            }
        }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return(_drawable.ToPath());
 }