async void populateData() { dataList.Children.Clear(); foreach (ParseObject obj in dataSelect) { await obj.FetchAsync(); MatchNumberCell cell1 = new MatchNumberCell(); cell1.matchNo.Text = obj ["matchNo"].ToString(); dataGrid.Children.Add(cell1, 0, 1, Z, Z + 1); TeamNumberCell cell2 = new TeamNumberCell(); cell2.teamNo.Text = obj ["teamNo"].ToString(); dataGrid.Children.Add(cell1, 0, 1, Z, Z + 1); Z++; } }
async Task populateData() { busyIcon.IsVisible = true; busyIcon.IsRunning = true; dataGrid.Children.Clear(); Z = 1; addColumnHeaders(); foreach (ParseObject obj in dataSelect) { await obj.FetchAsync(); MatchNumberCell cell1 = new MatchNumberCell(); cell1.matchNo.Text = obj ["matchNo"].ToString(); dataGrid.Children.Add(cell1, 0, 1, Z, Z + 1); TeamNumberCell cell2 = new TeamNumberCell(); cell2.teamNo.Text = obj ["teamNo"].ToString(); dataGrid.Children.Add(cell2, 1, 2, Z, Z + 1); /* * DataCell cell3 = new DataCell (); * cell3.data.Text = obj ["TotalScore"].ToString(); * dataGrid.Children.Add (cell3, 2, 3, Z, Z+1); * * DataCell cell4 = new DataCell (); * cell4.data.Text = obj ["autoPoints"].ToString(); * dataGrid.Children.Add (cell4, 3, 4, Z, Z+1); * * DataCell cell5 = new DataCell (); * cell5.data.Text = Convert.ToString(Convert.ToInt32(obj ["TotalScore"].ToString()) - Convert.ToInt32(obj ["autoPoints"].ToString())); * dataGrid.Children.Add (cell5, 4, 5, Z, Z + 1); */ Z++; } dataList.Children.Add(dataGrid); busyIcon.IsVisible = false; busyIcon.IsRunning = false; }