Пример #1
0
        protected override void OnBeforeQueryStatus()
        {
            var selection = SolutionHelper.GetSelectedItems(Package).ToList();

            Visible = selection.Any() && selection.All(item => !(item is VCProjectWrapper));
            Enabled = selection.All(item => item.ContainingProject.GetProjectRoot() != null);
        }
Пример #2
0
        protected override void OnBeforeQueryStatus()
        {
            var selection = SolutionHelper.GetSelectedItems(Package).ToList();

            Visible = selection.Any() && selection.All(item => !(item is VCProjectWrapper));
            Enabled = SolutionHelper.GetSelectedFiles(Package).Any();
        }
Пример #3
0
        protected override void OnExecute()
        {
            var selection = SolutionHelper.GetSelectedItems(Package)
                            .Where(item => item is ContainerWrapper)
                            .ToList();

            foreach (ContainerWrapper container in selection)
            {
                FileUtils.RemoveEmptyFilters(container);
            }
        }