private void SelectSinglePrisoner(Prisoner value) { foreach (Prisoner prisoner in SelectedPrisoners) { if (prisoner == value) { continue; } prisoner.NotifyDeSelect(); } SelectedPrisoners.Clear(); if (SelectedPrisoners.Contains(value)) { return; } value.NotifySelect(); SelectedPrisoners.Add(value); }