public new IQueryable <T> Set <T>() where T : class { if (typeof(T) == typeof(Document)) { return(Documents.Cast <T>().AsQueryable <T>()); } return(null); }
public List <FilesetDocument> GetOpenDocuments() { //Name is the name shown in the file pane //Path is the path up until the name //FullPath is the path including the name Documents openDocuments = _applicationObject.Documents; List <FilesetDocument> filesetDocs = openDocuments.Cast <Document>().Select( doc => new FilesetDocument { FullPath = doc.FullName, Name = doc.Name }).ToList(); return(filesetDocs); //FileCabinet.Filesets.Add(new Fileset() {Name = setName, Paths = filePaths}); //Documents.CloseAll(); }
public IEnumerable <string> Collect(Documents aDocuments) => aDocuments.Cast <Document>().Select(doc => doc.FullName);
internal static IEnumerable <Document> AllDocuments(this Documents documents) { return(documents.Cast <Document>().Where(x => !x.Path.StartsWith("vstfs://", StringComparison.InvariantCultureIgnoreCase))); }