Ejemplo n.º 1
0
 private void UpdateOpponentsNumber()
 {
     if (!Mode.CandidatesMode)
     {
         SetOpponentsNumberInternal(NonfilteredList.ApartFrom(_playerEntry).Count());
     }
 }
Ejemplo n.º 2
0
 private void UpdateExceeded()
 {
     if (Mode.CandidatesMode)
     {
         foreach (var entry in NonfilteredList.Where(x => x.ExceedsLimit))
         {
             entry.ExceedsLimit = false;
         }
     }
     else
     {
         var left = OpponentsNumberLimit;
         foreach (var entry in NonfilteredList.ApartFrom(_playerEntry))
         {
             entry.ExceedsLimit = --left < 0;
         }
     }
 }