Beispiel #1
0
        private void biAdd_Click(object sender, EventArgs e)
        {
            FrmEditorFaceBackList frmlist = new FrmEditorFaceBackList();

            if (frmlist.ShowDialog(this) == DialogResult.OK)
            {
                AddFace(frmlist.FACE);
            }
        }
Beispiel #2
0
        private void biModify_Click(object sender, EventArgs e)
        {
            FrmEditorFaceBackList frmlist = new FrmEditorFaceBackList();

            if (listFaces.SelectedItems.Count == 0)
            {
                WinInfoHelper.ShowInfoWindow(this, "请选择修改的人脸!");
                return;
            }
            Maticsoft.Model.IMS_FACE_BLACKLIST bl = (Maticsoft.Model.IMS_FACE_BLACKLIST)listFaces.SelectedItems[0].Tag;
            frmlist.FACE = bl;
            if (frmlist.ShowDialog(this) == DialogResult.OK)
            {
                AddFace(frmlist.FACE, listFaces.SelectedItems[0]);
            }
        }