private void setup_fingerPrint()
        {
            try
            {
                myReader = new FastCodeSDK.FPReader();
                myReader.GetReaders();
                if (myReader.ReaderCount <= 0)
                {
                    throw new Exception("Fingerprint device not found");
                }

                if (myReader.ReaderCount > 0)
                {
                    list_event();
                    fingerPrint_Device.get_FileCode();
                    myReader.SelectReader(fingerPrint_Device.VerificationCode, fingerPrint_Device.SerialNumber, fingerPrint_Device.ActivationCode.Trim(), FPReader.ReaderPriority.Low);
                }
                else
                {
                    MessageBox.Show("Fingerprint reader device not found", "Axioma Agent", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    this.Close();
                }

                string TemplateSafetyKey = fingerPrint_Device.TemplateSafetyKey;
                //DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(this,typeof(form_Wait),true,true,false);
                foreach (DataRow row in dt_finger_employees.Rows)
                {
                    int finger = Convert.ToInt32(row["fingerID"]);                   //get fingerindexes
                    FPReader.FingerIndex fingerIndex = (FPReader.FingerIndex)finger; //convert fingerindex
                    string employeeID     = row["employee"].ToString();
                    string fingerTemplate = row["fingerprint"].ToString();           //template
                    myReader.FPLoad(employeeID, fingerIndex, fingerTemplate, TemplateSafetyKey);
                }
                myReader.FPIdentificationID     += new FPReader.FPIdentificationIDEventHandler(MyReader_FPIdentificationID);
                myReader.FPIdentificationStatus += new FPReader.FPIdentificationStatusEventHandler(MyReader_FPIdentificationStatus);
                myReader.FPIdentificationStart(5);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            timer2.Start();
        }
        private void PT_fingerMultiEnd_Alt_Load(object sender, EventArgs e)
        {
            Bitmap logo = new Bitmap(Properties.Resources.Logo_RSG);

            pictureEdit_Logo.Image = logo;

            lb_clubName.Text        = _clubName;
            lb_productName.Text     = _dt_student.Rows[0]["productName"].ToString();
            lb_Instructor_Name.Text = "Instructor: " + _dt_student.Rows[0]["employeeStartName"].ToString();

            employeeStart = _dt_student.Rows[0]["employeeStart"].ToString();
            lb_Room.Text  = "Room: " + _dt_student.Rows[0]["room"].ToString();;
            try //cuman buat getFileCode (pakai throw) karena pada event load execute tiap code sblom di close)
            {
                myReader = new FPReader();
                myReader.GetReaders();
                list_event();

                fingerPrint_Device.get_FileCode();

                if (myReader.ReaderCount > 0)
                {
                    myReader.SelectReader(fingerPrint_Device.VerificationCode, fingerPrint_Device.SerialNumber, fingerPrint_Device.ActivationCode.Trim(), FPReader.ReaderPriority.Low);

                    foreach (Control ctl in this.Controls)
                    {
                        ctl.Enabled = false;
                    }
                }
                else
                {
                    MessageBox.Show("Fingerprint reader device not found", "Axioma Agent", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Axioma Agent", MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.Close();
            }
        }