示例#1
0
        private void đăngKýToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form_AddFace form = new Form_AddFace();

            form.StartPosition = FormStartPosition.CenterScreen;
            if (m_isFaceDetect)
            {
                form.m_FD_Face = m_FD_Face;
            }
            if (m_isFaceRecog)
            {
                form.m_face_recog = m_face_recog;
            }
            if (form.ShowDialog() == DialogResult.OK)
            {
            }
        }
示例#2
0
        private void listView_thumbnail_DoubleClick(object sender, EventArgs e)
        {
            ListViewItem lvItem = listView_thumbnail.SelectedItems[0];

            if (lvItem.Text == "Unknown")
            {
                Form_AddFace form = new Form_AddFace();
                form.StartPosition = FormStartPosition.CenterScreen;
                if (m_isFaceDetect)
                {
                    form.m_FD_Face = m_FD_Face;
                }
                if (m_isFaceRecog)
                {
                    form.m_face_recog = m_face_recog;
                }
                form.m_bitmap_Face = new Bitmap(lvItem.Name);
                if (form.ShowDialog() == DialogResult.OK)
                {
                }
            }
        }