public string[] GetPhotos(string key) { string[] retVal = null; GenericArrayObj target = null; foreach (GenericArrayObj current in this.categories) { if (key == current.key) { target = current; break; } } if (target != null) { List <int> pictures = new List <int>(target.values); FaceForm.RemoveDups(pictures); retVal = FaceForm.GetPictures(pictures); } return(retVal); }
private string GetUnclassifiedPlayers() { List <int> classifiedPlayers = new List <int>(); foreach (GenericArrayObj dude in mCategories.categories) { classifiedPlayers.AddRange(dude.values); } FaceForm.RemoveDups(classifiedPlayers); List <string> classifiedPlayerPics = new List <string>(FaceForm.GetPictures(classifiedPlayers)); StringBuilder builder = new StringBuilder(); foreach (string pfile in mAllPhotoFiles) { if (classifiedPlayerPics.IndexOf(pfile) == -1) { builder.Append(pfile); builder.Append("\r\n"); } } return(builder.ToString()); }