private void SelectTabFromChallenge(ChallengeResult challengeResult)
 {
     foreach (ChallengeStanding challengeStanding in ChallengesTabControl.Items)
     {
         if (Equals(challengeStanding.Challenge.Name, challengeResult.ToString()))
         {
             ChallengesTabControl.SelectedItem = challengeStanding;
             break;
         }
     }
 }
        public int GetPlayerPosition(ChallengeResult challengeResult, Player selectedPlayer)
        {
            var challengeStanding =
                ChallengeStandings.FirstOrDefault(
                    c => c.Challenge.ToString() == challengeResult.ToString());

            if (challengeStanding != null)
            {
                return(challengeStanding.GetPlayerPosition(selectedPlayer.Id));
            }

            return(-1);
        }