示例#1
0
 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);
     }
 }