private void Filter() { lbCards.Items.Clear(); foreach (CardItem item in CardLoader.GetFilteredCards(tbSearch.Text, cbDescription.IsChecked, cbbRole.SelectedIndex, Convert.ToInt16(slCost.Value)).OrderBy(x => x.CardData.Name)) { lbCards.Items.Add(item); } }