Exemple #1
0
 private void ComboBoxSelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (MaxNumberOfAnswers <= 1 &&
         Characteristic.SelectedCharacteristicQuantificationAllowedTerms.Count > 0 &&
         Characteristic.SelectedCharacteristicQuantificationAllowedTerms[0] != _comboBox.SelectedItem)
     {
         Characteristic.ClearSelectedAllowedTerms();
     }
     if (_comboBox.SelectedItem != null)
     {
         ((CharacteristicQuantificationAllowedTerm)_comboBox.SelectedItem).Selected = true;
     }
 }