private void ChangeMembersBetween(int thoseWhoHaveMorePoints) { int xBuf = ContestBarList[thoseWhoHaveMorePoints - 1].GetCord().X; int yBuf = ContestBarList[thoseWhoHaveMorePoints - 1].GetCord().Y; ContestBarList[thoseWhoHaveMorePoints - 1].SetCord(ContestBarList[thoseWhoHaveMorePoints].GetCord()); ContestBarList[thoseWhoHaveMorePoints].SetCord(new Point(xBuf, yBuf)); ContestBar buf = ContestBarList[thoseWhoHaveMorePoints - 1]; ContestBarList[thoseWhoHaveMorePoints - 1] = ContestBarList[thoseWhoHaveMorePoints]; ContestBarList[thoseWhoHaveMorePoints] = buf; }
private int SeekNextChoise() { int nextPoint = -1; do { if (JuryChoise[currentJury][currentPoint] > 0) { ContestBar cbb = ContestBarList.Find((ContestBar cb) => { return(cb.GetContestName() == ContestList[JuryChoise[currentJury][currentPoint]]); }); nextPoint = ContestBarList.IndexOf(cbb); } else { currentPoint++; } } while ((nextPoint == -1) && (currentPoint < 10)); return(nextPoint); }