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); }
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); }