Example #1
0
        private void addFinished_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show(
                    this,
                    "确定生成人脸特征库?",
                    "请确认",
                    MessageBoxButtons.YesNo) != DialogResult.Yes)
            {
                return;
            }


            if (GetFaceSamplesCount() < 40)
            {
                MessageBox.Show(this, "样本数量不足, 请继续添加", "错误", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }

            FormProgress form = new FormProgress();

            form.ShowDialog(this);

            this.Close();
        }
        private void addFinished_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show(
                this,
                "确定生成人脸特征库?",
                "请确认",
                MessageBoxButtons.YesNo) != DialogResult.Yes) return;

            this.mnger.Save();

            FormProgress form = new FormProgress();
            form.Manager = this.mnger;
            form.ShowDialog(this);
        }
        private void addFinished_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show(
                this,
                "确定生成人脸特征库?",
                "请确认",
                MessageBoxButtons.YesNo) != DialogResult.Yes) return;

            if (GetFaceSamplesCount() < 40)
            {
                MessageBox.Show(this, "样本数量不足, 请继续添加", "错误", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }

            FormProgress form = new FormProgress();
            form.ShowDialog(this);

            this.Close();
        }