Пример #1
0
        public override bool IsVisible(IVisualStudioService visualStudioService)
        {
            var selectedItems = visualStudioService.GetSelectedFileNamesQualified();

            return(selectedItems.Count() == 1 &&
                   selectedItems.First().ToLower().EndsWith("schema.cs"));
        }
Пример #2
0
        public override bool IsVisible(IVisualStudioService visualStudioService)
        {
            var selectedItems = visualStudioService.GetSelectedFileNamesQualified();

            return(selectedItems.All(f => ValidExtentions.Any(ext => f.EndsWith("." + ext))));
        }