IfcDoc.CtlProperties.listViewExchange_SelectedIndexChanged C# (CSharp) Method

listViewExchange_SelectedIndexChanged() private method

private listViewExchange_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void listViewExchange_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.listViewExchange.SelectedItems.Count == 0)
            {
                // disable all
                this.toolStripButtonReqImportMandatory.Enabled = false;
                this.toolStripButtonReqImportRecommended.Enabled = false;
                this.toolStripButtonReqImportNotRecommended.Enabled = false;
                this.toolStripButtonReqImportExcluded.Enabled = false;
                this.toolStripButtonReqExportExcluded.Enabled = false;
                this.toolStripButtonReqExportNotRecommended.Enabled = false;
                this.toolStripButtonReqExportRecommended.Enabled = false;
                this.toolStripButtonReqExportMandatory.Enabled = false;
                return;
            }

            this.toolStripButtonReqImportMandatory.Enabled = true;
            this.toolStripButtonReqImportRecommended.Enabled = true;
            this.toolStripButtonReqImportNotRecommended.Enabled = true;
            this.toolStripButtonReqImportExcluded.Enabled = true;
            this.toolStripButtonReqExportExcluded.Enabled = true;
            this.toolStripButtonReqExportNotRecommended.Enabled = true;
            this.toolStripButtonReqExportRecommended.Enabled = true;
            this.toolStripButtonReqExportMandatory.Enabled = true;

            LoadExchangeRequirement(this.toolStripButtonReqImportMandatory, DocExchangeApplicabilityEnum.Import, DocExchangeRequirementEnum.Mandatory);
            LoadExchangeRequirement(this.toolStripButtonReqImportRecommended, DocExchangeApplicabilityEnum.Import, DocExchangeRequirementEnum.Optional);
            LoadExchangeRequirement(this.toolStripButtonReqImportNotRecommended, DocExchangeApplicabilityEnum.Import, DocExchangeRequirementEnum.NotRecommended);
            LoadExchangeRequirement(this.toolStripButtonReqImportExcluded, DocExchangeApplicabilityEnum.Import, DocExchangeRequirementEnum.Excluded);
            LoadExchangeRequirement(this.toolStripButtonReqExportExcluded, DocExchangeApplicabilityEnum.Export, DocExchangeRequirementEnum.Excluded);
            LoadExchangeRequirement(this.toolStripButtonReqExportNotRecommended, DocExchangeApplicabilityEnum.Export, DocExchangeRequirementEnum.NotRecommended);
            LoadExchangeRequirement(this.toolStripButtonReqExportRecommended, DocExchangeApplicabilityEnum.Export, DocExchangeRequirementEnum.Optional);
            LoadExchangeRequirement(this.toolStripButtonReqExportMandatory, DocExchangeApplicabilityEnum.Export, DocExchangeRequirementEnum.Mandatory);
        }
CtlProperties