Пример #1
0
        protected override void Run()
        {
            SolutionItem entry = IdeApp.ProjectOperations.CurrentSelectedItem as SolutionItem;

            if (entry != null && MainAnalyzer.CanAnalyze(entry))
            {
                MainAnalyzer.BeginAnalysis(entry);
            }
        }
Пример #2
0
        protected override void Update(CommandInfo info)
        {
            SolutionItem entry = IdeApp.ProjectOperations.CurrentSelectedItem as SolutionItem;

            if (entry == null)
            {
                info.Enabled = info.Visible = false;
                return;
            }

            info.Enabled = !(MainAnalyzer.IsBusy);
            info.Visible = MainAnalyzer.CanAnalyze(entry);
            info.Text    = AddinCatalog.GetString("Analyze {0}", entry.Name);
        }