private void selectResultItem_Click(object sender, EventArgs e) { if (selectResult.Visible) { selectResult.Hide(); } _selectedRaid.ItemRewards.Add(new RaidItem_Info { Info = _selectedItem }); _selectedRaidReward = _selectedRaid.ItemRewards[_selectedRaid.ItemRewards.Count - 1]; UpdateRewardInterface(); }
private void rewardListBox_SelectedIndexChanged(object sender, EventArgs e) { if (_selectedRaid == null) { return; } if (rewardListBox.SelectedItem != null) { _selectedRaidReward = (RaidItem_Info)rewardListBox.SelectedItem; } UpdateRewardInterface(); }