示例#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))));
        }