コード例 #1
0
        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;
        }
コード例 #2
0
 private void modifierListBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     this.modifierData = (ModifierData)this.modifierListBox.SelectedItem;
     this.SetUpBindings();
 }
コード例 #3
0
 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;
 }