Beispiel #1
0
 private void identifyFaceButton_ItemClick(object sender, ItemClickEventArgs e)
 {
     int uKey = pictureBrowserControl1.GetSelectedFaceUKey();
     if (uKey == -1)
     {
         MessageBox.Show("Click on a face to assign first.");
     }
     else
     {
         var db = new AssignFacesDialogBox(
             (new api.Face[] { _fm.GetFace(uKey)}).ToList(), _fm);
         db.ShowDialog();
     }
 }
Beispiel #2
0
 private void assignPicturesButton_ItemClick(object sender, ItemClickEventArgs e)
 {
     var unassignedFaces = _fm.GetUnassignedFaces();
     if (unassignedFaces.Count() == 0)
         MessageBox.Show("No unassigned faces.");
     else
     {
         var db = new AssignFacesDialogBox(unassignedFaces, _fm);
         db.ShowDialog();
     }
 }