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; } }
private void AffixValueTypeComboBox_SelectedIndexChanged(object sender, EventArgs e) { localValueType = (AffixValueType)Enum.Parse(typeof(AffixValueType), AffixValueTypeComboBox.Text); SwitchAffixValuePanel(); CheckValueTypeChanged(); }