private void refreshTotals() { double humanTotal = 0; double CPUtotal = 0; foreach (int index in myPicks.SelectedIndices) { humanTotal += df.pickvalue(myPicksList[index], LowerCON); } foreach (int index in CPUpicks.SelectedIndices) { CPUtotal += df.pickvalue(theirPicksList[index], HigherCON); } humanValue.Text = humanTotal.ToString(); CPUvalue.Text = CPUtotal.ToString(); }
private void refreshTotals() { double humanTotal = 0; double CPUtotal = 0; foreach (int index in myPicks.SelectedIndices) { humanTotal += df.pickvalue(picksList[HumanTeam][index], cons[HumanTeam]); } foreach (int index in CPUpicks.SelectedIndices) { CPUtotal += df.pickvalue(picksList[dm.tradeOffers[activeTeam].LowerTeam][index], cons[dm.tradeOffers[activeTeam].LowerTeam]); } humanValue.Text = humanTotal.ToString(); CPUvalue.Text = CPUtotal.ToString(); }