Ejemplo n.º 1
0
        public static IEnumerable <VCProjectItemWrapper> GetSelectedItems(VCFileUtilsPackage package)
        {
            foreach (var item in GetSelectedUIHierarchyItems(package))
            {
                VCProjectItem vcProjectItem = null;

                if (item.Object is ProjectItem)
                {
                    vcProjectItem = (item.Object as ProjectItem).Object as VCProjectItem;
                }

                if (item.Object is Project)
                {
                    vcProjectItem = (item.Object as Project).Object as VCProjectItem;
                }

                if (vcProjectItem != null)
                {
                    yield return(WrapperFactory.FromVCProjectItem(vcProjectItem));
                }
            }
        }