示例#1
0
        private void btnFaceRecognizer_Click(object sender, EventArgs e)
        {
            faceRecognizeForm formFace = new faceRecognizeForm();

            formFace.StartPosition = FormStartPosition.CenterParent;
            this.Hide();
            formFace.ShowDialog();
            Close();
        }
示例#2
0
        private void buttonfaceAttendance_Click(object sender, EventArgs e)
        {
            int checkCurrentDate = checkDate();

            if (checkCurrentDate == 1)
            {
                MessageBox.Show("Attendance Already Taken!");
                return;
            }
            faceRecognizeForm faceForm = new faceRecognizeForm();

            faceForm.StartPosition = FormStartPosition.CenterParent;
            ((Form)this.TopLevelControl).Hide();

            faceForm.ShowDialog();
            ((Form)this.TopLevelControl).Show();
        }