//when i = 0:you, i=1:left, i=2:right // The value field for YOU is just your base resources and excludes special resources. // The value field for LEFT and RIGHT are the combination of special and base resources. private void createValueFields() { int skip = 0; int[] currentTotals; for (int i = 0; i < 3; i++) { currentTotals = manager.trArray(you); //getCurrentTotals(i);//This is YOU if (i == 1) //This is LEFT { currentTotals = manager.tradableArray(you, 1); } if (i == 2)//This is RIGHT { currentTotals = manager.tradableArray(you, 2); } for (int j = 0; j < 7; j++) { Label l = new Label(); l.Content = currentTotals[j]; l.Width = 25; l.Height = 27; Grid.SetColumn(l, j); Grid.SetRow(l, (i + 2 + skip)); mainGrid.Children.Add(l); } skip += 1; } }