private void queryStatusMenuCommand_BeforeQueryStatus2(object sender, EventArgs e)
        {
            OleMenuCommand menuCommand = sender as OleMenuCommand;
            var            items       = new List <string>(GetSelectedItemPaths());

            menuCommand.Enabled = items.Count(f => Cruncher.IsSupported(f)) > 0;
        }
        private void queryStatusMenuCommand_BeforeQueryStatus(object sender, EventArgs e)
        {
            OleMenuCommand menuCommand = sender as OleMenuCommand;
            var            items       = new List <string>(GetSelectedItemPaths());
            bool           isVisible   = false;

            if (items.Count == 1 && File.Exists(items[0]))
            {
                isVisible = Cruncher.IsSupported(items[0]);
            }

            menuCommand.Enabled = isVisible;
        }