IfcDoc.FormRule.UpdateBehavior C# (CSharp) Method

UpdateBehavior() private method

private UpdateBehavior ( ) : void
return void
        private void UpdateBehavior()
        {
            switch (this.comboBoxUsage.SelectedIndex)
            {
                case 0:
                    this.textBoxBehavior.Text = "";
                    break;

                case 1:
                    this.textBoxBehavior.Text = "Rules only apply if attribute equals specified value.\r\n";
                    break;

                case 2:
                    this.textBoxBehavior.Text = "Attribute must equal specified value if rule applies.\r\n";
                    break;
            }

            switch (this.comboBoxCardinality.SelectedIndex)
            {
                case 0: // -
                    break;

                case 1: // [0]
                    this.textBoxBehavior.Text += "No applicable template items may satisfy all constraints.";
                    break;

                case 2: // [0:1]
                    this.textBoxBehavior.Text += "Zero or one template items must satisfy all constraints.";
                    break;

                case 3: // [1]
                    this.textBoxBehavior.Text += "Exactly one applicable template item must satisfy all constraints.";
                    break;

                case 4: // [1:?]
                    this.textBoxBehavior.Text += "Each applicable template item must satisfy all constraints.";
                    break;
            }
        }