Ejemplo n.º 1
0
        private void OnStatusGenerateAllCode(object sender, EventArgs e)
        {
            MenuCommand command = sender as MenuCommand;

            if (command != null)
            {
                bool flag = this.CalculateCommandVisibility();
                command.Visible = flag;
                bool flag2 = flag;
                if (flag2)
                {
                    int num;
                    IVsSolutionBuildManager service = (IVsSolutionBuildManager)this.serviceProvider.GetService(typeof(SVsSolutionBuildManager));
                    if (((service != null) && ErrorHandler.Succeeded(service.QueryBuildManagerBusy(out num))) && (num == 1))
                    {
                        flag2 = false;
                    }
                }
                command.Enabled = flag2;
            }
        }