private void oppGroupOnClick(object sender, EventArgs e) { if (currentMatch.GetMatchResult() == 0) { removeFromMatchLeftString(currentMatch.weighClass); } myTeamGroup.ClearCheck(); if (OF.Checked) { currentMatch.SetMatchResult(5); AdvanceWeighClasses(); return; } if (OTF.Checked) { currentMatch.SetMatchResult(6); AdvanceWeighClasses(); return; } if (OMD.Checked) { currentMatch.SetMatchResult(7); AdvanceWeighClasses(); return; } if (OD.Checked) { currentMatch.SetMatchResult(8); AdvanceWeighClasses(); return; } }
private void weighClassesOnClick(object sender, AdapterView.ItemSelectedEventArgs e) { currentMatch = matchList[e.Position]; myTeamGroup.ClearCheck(); oppGroup.ClearCheck(); switch (currentMatch.GetMatchResult()) { case (0): break; case 1: MTF.Checked = true; break; case 2: MTTF.Checked = true; break; case 3: MTMD.Checked = true; break; case 4: MTD.Checked = true; break; case 5: OF.Checked = true; break; case 6: OTF.Checked = true; break; case 7: OMD.Checked = true; break; case 8: OD.Checked = true; break; } whoShowFirst(); }