public void Start(BaseEquipment.EQUIP_TYPES biit, List <int> list) { Show(); selectedItemType = biit; listToAddTo = list; listBox1.Items.AddRange(MapBuilder.gcDB.gameItems.FindAll(i => i.itemType == BaseItem.ITEM_TYPES.Equipment).Cast <BaseEquipment>().ToList().FindAll(i => i.EquipType == biit).ToArray()); listBox2.DataSource = null; List <BaseItem> lbi = MapBuilder.gcDB.gameItems.FindAll(i => listToAddTo.Contains(i)); listBox2.DataSource = lbi; }
public void Start(BaseEquipment.EQUIP_TYPES biit) { Show(); selectedItemType = biit; listBox1.Items.AddRange(MapBuilder.gcDB.gameItems.FindAll(i => i.itemType == BaseItem.ITEM_TYPES.Equipment).Cast <BaseEquipment>().ToList().FindAll(i => i.EquipType == biit).ToArray()); }