private bool OnBindStatus(ProjectInformation projectInformation) { return(projectInformation != null && this.host.VisualStateManager.IsConnected && !this.host.VisualStateManager.IsBusy && VsShellUtils.IsSolutionExistsAndFullyLoaded() && VsShellUtils.IsSolutionExistsAndNotBuildingAndNotDebugging() && (this.projectSystemHelper.GetSolutionProjects()?.Any() ?? false)); }
private bool OnBindStatus(BindCommandArgs args) { return(args != null && args.ProjectKey != null && this.host.VisualStateManager.IsConnected && !this.host.VisualStateManager.IsBusy && VsShellUtils.IsSolutionExistsAndFullyLoaded() && VsShellUtils.IsSolutionExistsAndNotBuildingAndNotDebugging() && (this.projectSystemHelper.GetSolutionProjects()?.Any() ?? false)); }