public virtual new String ToString() { Int32 ndx = FilePath.LastIndexOf(Path.DirectorySeparatorChar); if (ndx == -1) { return(FilePath); } String newFilePath = FilePath.Substring(0, ndx); ndx = newFilePath.LastIndexOf(Path.DirectorySeparatorChar); if (ndx == -1) { return(FilePath); } newFilePath = FilePath.Substring(ndx); Int32 count = FilePath.Count((c) => { if (c == Path.DirectorySeparatorChar) { return(true); } else { return(false); } }); if (count > 2) { newFilePath = "..." + newFilePath; } else { newFilePath = newFilePath.Trim(Path.DirectorySeparatorChar); } return(newFilePath); }