Exemple #1
0
        private void Register_Click(object sender, EventArgs e)
        {
            CaptureHuella capture = new CaptureHuella();

            capture.OnTemplate += this.OnTemplate;
            capture.ShowDialog();
        }
Exemple #2
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            int           row     = 0;
            CaptureHuella capture = new CaptureHuella();

            capture.OnTemplate += this.OnTemplate;
            capture.ShowDialog();
            try
            {
                byte[] streamHuella = Template.Bytes;

                MessageBox.Show("Record saved successfully");
                Students.PrintBinary                       = streamHuella;
                SelectedName["Id", row].Value              = Students.Id;
                SelectedName["Name", row].Value            = Students.StudentName;
                SelectedName["GuardianName", row].Value    = Students.GuardianName;
                SelectedName["Address", row].Value         = Students.Address;
                SelectedName["ContactInfo", row].Value     = Students.ContactInfo;
                SelectedName["Status", row].Value          = Students.Status;
                SelectedName["AdmissionDate", row].Value   = Students.AddmissionDate;
                SelectedName["ClassId", row].Value         = Students.ClassId;
                SelectedName["ProgramId", row].Value       = Students.ProgramId;
                SelectedName["CurrentSemclass", row].Value = Students.CurrentSemclass;
                SelectedName["PrintBinary", row].Value     = Students.PrintBinary;
                SelectedName["AddedOn", row].Value         = Students.AddedOn;
                SelectedName["Image", row].Value           = Students.Uploadimage;

                Template = null;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        private void GetPrint_Click(object sender, EventArgs e)
        {
            markAttendence = new MarkAttendence();
            CaptureHuella capture = new CaptureHuella();

            capture.OnTemplate += this.OnTemplate;
            capture.ShowDialog();
            try
            {
                byte[] streamHuella = Template.Bytes;
                Status.Text = "Captured";
                markAttendence.Studentid   = StudentId.Text;
                markAttendence.Name        = Name.Text;
                markAttendence.PrintBinary = Template.Bytes;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }