private void SlotList_DoubleClick(object sender, EventArgs e) { if (this.SelectedSlot != null) { CreatureSelectForm creatureSelectForm = new CreatureSelectForm(this.SelectedSlot, this.fData.PartyLevel); if (creatureSelectForm.ShowDialog() == DialogResult.OK) { this.fData.FilledSlots[this.SelectedSlot] = creatureSelectForm.Creature; this.update_list(); } } }
private void SlotList_DoubleClick(object sender, EventArgs e) { if (SelectedSlot != null) { CreatureSelectForm dlg = new CreatureSelectForm(SelectedSlot, fData.PartyLevel); if (dlg.ShowDialog() == DialogResult.OK) { fData.FilledSlots[SelectedSlot] = dlg.Creature; update_list(); } } }