public VbeProjectCollectionModel(VBProjects projects) { AddRange(projects.Cast <VBProject>().Select(p => new VbeProjectModel(p))); }
public static IEnumerable <VBProject> UnprotectedProjects(this VBProjects projects) { return(projects.Cast <VBProject>().Where(project => project.Protection == vbext_ProjectProtection.vbext_pp_none)); }