示例#1
0
        private void featureList_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (totemList.SelectedItems.Count > 0)
            {
                ChoiceFeatureOption currentOption = (ChoiceFeatureOption)totemList.SelectedItem;
                totemDescriptionLabel.Text = currentOption.Description;
            }

            OnTotemOptionChosen(null);
        }
        private void optionList_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (optionList.SelectedItems.Count > 0)
            {
                ChoiceFeatureOption currentOption = (ChoiceFeatureOption)optionList.SelectedItem;
                optionDescriptionLabel.Text = currentOption.Description;
            }

            OnHunterOptionChosen(null);
        }
示例#3
0
        public void saveContent()
        {
            if (totemList.SelectedItems.Count > 0)
            {
                ChoiceFeatureOption currentOption = (ChoiceFeatureOption)totemList.SelectedItem;
                feature.selectOption(currentOption);
            }

            wm.Choices.ClassChoice.getSelectedSubclass().TotemFeatures.Remove(feature);
            wm.Choices.ClassChoice.getSelectedSubclass().TotemFeatures.Add(feature);
        }