Пример #1
0
        /// <summary>
        /// Selected Index changed: load the picture and show who is on it
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void listBoxFiles_SelectedIndexChanged(object sender, EventArgs e)
        {
            PictureComparer p = listBoxFilesChanged.SelectedItem as PictureComparer;

            if (p != null)
            {
                _FaceVisualiser.FileName = Path.Combine(_CurrentDirectory, p.FileName);
                // Add all faces to the found faces list boxes
                listBoxPersonsFound.Items.Clear();
                listBoxPersonsFoundXmp.Items.Clear();
                listBoxResult.Items.Clear();

                if (p.ExifInfo != null)
                {
                    /*  foreach (KeyValuePair<string, Face> kp in p.ExifInfo.Faces)
                     * {
                     *   listBoxPersonsFoundXmp.Items.Add(kp.Value);
                     * }*/
                }
                if (p.WriteData != null)
                {
                    foreach (KeyValuePair <string, Face> kp in p.WriteData)
                    {
                        listBoxResult.Items.Add(kp.Value);
                    }
                }
            }
        }
Пример #2
0
        /// <summary>
        /// Debug: double click on an changed item can do somthing
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void listBoxFilesChanged_DoubleClick(object sender, EventArgs e)
        {
            PictureComparer p = listBoxFilesChanged.SelectedItem as PictureComparer;

            if (p != null)
            {
            }
        }