/// <summary> /// Mark the faces on the picture box /// </summary> /// <param name="picturebox"></param> public void MarkFaces(PictureBox picturebox) { FaceToPictureBox fpb = new FaceToPictureBox(picturebox); Pen p = new Pen(Color.Red, 2); foreach (Face f in _PicasaFaces.Values) { fpb.DrawFace(f); } }
/// <summary> /// Index of the list changed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void listBoxPersonsFound_SelectedIndexChanged(object sender, EventArgs e) { ListBox listbox = sender as ListBox; if (listbox != null) { Face f = listbox.SelectedItem as Face; if (f != null) { _FaceVisualiser.DrawFace(f); } } }