/// <summary> /// Gets next match and updates images /// </summary> private void GoToNextMatch() { matchNumber++; Match m; if (matches.Count < matchNumber) { //System.Diagnostics.Debug.WriteLine("GET NEW MATCH"); m = gen.GetMatches(1).First(); matches.Add(m); } else { //System.Diagnostics.Debug.WriteLine("GET OLD MATCH"); m = matches[matchNumber - 1]; } if (matchNumber > 1) { RunOnUiThread(() => backBtn.Visibility = ViewStates.Visible); } System.Diagnostics.Debug.WriteLine(m); UpdateImages(m); }