void ResetPage() { CoupleSpinner.Update(this, PossibleCouples, Resource.Id.coupleInput); DanceSpinner.Update(this, Repo.GetAllDances().ToList(), Resource.Id.danceInput); EditText scoreInput = FindViewById <EditText>(Resource.Id.scoreInput); scoreInput.Text = "0"; UpdateWeekStatsButtonVis(); }
public void PopulateDances() { var possibleDanceIds = CoupleScores.Where(x => x.CoupleID == Couple.CoupleID && x.WeekNumber == SelectedWeek) .Select(x => x.DanceID) .ToList(); var possibleDances = Repo.GetAllDances().Where(x => possibleDanceIds.Contains(x.DanceId)) .ToList(); DanceSpinner.Update(this, possibleDances, Resource.Id.editScoreDanceSpinner); }