Ejemplo n.º 1
0
        private void SwitchAffixValuePanel()
        {
            AffixValueType type = (AffixValueType)Enum.Parse(typeof(AffixValueType), AffixValueTypeComboBox.Text);

            if (type == AffixValueType.SingleValue)
            {
                AffixValueTypeSinglePanel.Location = new Point(6, 237);
                AffixValueTypeSinglePanel.Visible  = true;
                AffixValueTypeRangePanel.Visible   = false;
            }
            else if (type == AffixValueType.Range)
            {
                AffixValueTypeRangePanel.Location = new Point(6, 237);
                AffixValueTypeRangePanel.Visible  = true;
                AffixValueTypeSinglePanel.Visible = false;
            }
            else if (type == AffixValueType.Multiple)
            {
                AffixValueTypeRangePanel.Visible  = false;
                AffixValueTypeSinglePanel.Visible = false;
            }
        }
Ejemplo n.º 2
0
 private void AffixValueTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     localValueType = (AffixValueType)Enum.Parse(typeof(AffixValueType), AffixValueTypeComboBox.Text);
     SwitchAffixValuePanel();
     CheckValueTypeChanged();
 }