public EndScreen(bool lost, int prize, int helpsUsed) { InitializeComponent(); tbPrize.Text = PrizeListItem.FormatPrize(prize); tbHelps.Text = helpsUsed.ToString(); this.prize = prize; this.helpsUsed = helpsUsed; }
private void AddListItems() { InitPrizeList(); prizeListItems = new List <PrizeListItem>(); PrizeListItem prizeListItem; bool isFixed = false; for (int idx = 0; idx < prizeList.Count; idx++) { isFixed = (idx == 3 || idx == 7 || idx == 11) ? true : false; prizeListItem = new PrizeListItem(idx + 1, prizeList[idx], isFixed); prizePanel.Children.Add(prizeListItem); prizeListItems.Add(prizeListItem); } }