XenAdmin.Wizards.PatchingWizard.PatchingWizard_PrecheckPage.UpdateControls C# (CSharp) Method

UpdateControls() private method

private UpdateControls ( bool problemsFound = false ) : void
problemsFound bool
return void
        private void UpdateControls(bool problemsFound = false)
        {
            bool actionInProgress = IsResolveActionInProgress;
            bool checkInProgress = IsCheckInProgress;
            buttonResolveAll.Enabled = buttonReCheckProblems.Enabled = checkBoxViewPrecheckFailuresOnly.Enabled = !actionInProgress && !checkInProgress;
            labelProgress.Visible = actionInProgress || checkInProgress || !problemsFound;
            pictureBoxIssues.Visible = labelIssues.Visible = problemsFound && !actionInProgress && !checkInProgress;
        }