private void addModifierButton_Click(object sender, EventArgs e) { this.SaveModifierData(); this.modifierData = new ModifierData(); this.modifierList.Add(this.modifierData); this.modifierListBox.SelectedIndex = this.modifierList.Count - 1; }
private void modifierListBox_SelectedIndexChanged(object sender, EventArgs e) { this.modifierData = (ModifierData)this.modifierListBox.SelectedItem; this.SetUpBindings(); }
private void removeModifierButton_Click(object sender, EventArgs e) { this.modifierList.Remove(this.modifierData); this.modifierData = null; this.modifierListBox.SelectedIndex = this.modifierListBox.SelectedIndex == 0 ? 0 : this.modifierListBox.SelectedIndex - 1; }