private void SetThisRoundDoubles(List <PlayerTeam> tlist) { var matchlist = MatchOrganizer.DoublesMatchList(tlist); if (matchlist[0].Team1.Player1.PlayerGender == Player.Gender.Male || matchlist[0].Team1.Player2.PlayerGender == Player.Gender.Female) { MatchOrganizer.AddRef(matchlist, MaleRefs); } else { MatchOrganizer.AddRef(matchlist, FemaleRefs); } ThisRound = matchlist; PlayRound(); }
private void SetThisRoundSingles(List <Player> plist) { var matchlist = MatchOrganizer.SinglesMatchList(plist); if (matchlist[0].Player1.PlayerGender == Player.Gender.Male) { MatchOrganizer.AddRef(matchlist, MaleRefs); } else { MatchOrganizer.AddRef(matchlist, FemaleRefs); } ThisRound = matchlist; PlayRound(); }