private void ListSword_Click(object sender, EventArgs e) { if (game.CheckPlayerInventory <Sword>()) { game.Equip("Sword"); } UpdateCharacters(); }