public override string ToString()
 {
     if (CategoryPath.Count < 2)
     {
         return("");
     }
     return(new String(' ', CategoryPath.Count - 2) + CategoryPath.Last <String>());
 }
예제 #2
0
 public List<String> MakePath()
 {
     if (CategoryPath.Count > 1 && CategoryPath.Last() == ItemsDir) return new List<string>() { "." };
     List<String> cnames = new List<string>();
     foreach (string s in CategoryPath) 
     {
         removeInvalidPathChars.Replace(s, "_");
         cnames.Add(s);
     }
     cnames.Remove(ItemsDir);
     return cnames;
 }
예제 #3
0
 public override string ToString()
 {
     if (CategoryPath.Count < 2) return "";
     return new String(' ', CategoryPath.Count - 2) + CategoryPath.Last<String>();
 }