private void btnFaceRecognizer_Click(object sender, EventArgs e) { faceRecognizeForm formFace = new faceRecognizeForm(); formFace.StartPosition = FormStartPosition.CenterParent; this.Hide(); formFace.ShowDialog(); Close(); }
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(); }