/* * private void LoadNotifiedTherapists() * { * var therapistString = DataStorage.GetData(NOTIFIED); * if (string.IsNullOrEmpty(therapistString)) * return; * var ids = therapistString.Split('|').Select(long.Parse); * foreach (var id in ids) * { * var therapist = AllTherapists.First(t => t.ID == id); * //NotifiedTherapists.Add(therapist); * } * }*/ private void LoadStarredTherapists() { var therapistString = DataStorage.GetData(STARRED); if (string.IsNullOrEmpty(therapistString)) { return; } var ids = therapistString.Split('|').Select(long.Parse); foreach (var id in ids) { var therapist = AllTherapists.First(t => t.ID == id); StarredTherapists.Add(therapist); } }
public Therapist[] Filter(TherapistFilter filter) { return(AllTherapists.Where(filter.Allows).ToArray()); }