FECipherVit.SelectHero.CardListBox_SelectedIndexChanged C# (CSharp) Method

CardListBox_SelectedIndexChanged() private method

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