private void CardListBox_SelectedIndexChanged(object sender, EventArgs e) { if (CardListBox.SelectedIndex >= 0 && CardListBox.SelectedIndex < CardListBox.Items.Count) { Owner.CardInfoRenew(Player.Deck.CardList[CardListBox.SelectedIndex]); } }