Example #1
0
        private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var index = _comboBox.SelectedIndex;

            if (index < _descriptions.Length && index >= 0)
            {
                _model.ChangeProperty(_descriptions[index]);
            }
        }
Example #2
0
        private void EnumValueComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var index        = EnumValueComboBox.SelectedIndex;
            var descriptions = _model.EnumValues;

            if (index < descriptions.Length && index >= 0)
            {
                _model.ChangeProperty(descriptions[index]);
            }
        }