private void Btn_TakeFingerPrint_Click(object sender, EventArgs e) { Suprema suprema = new Suprema(); suprema.InitializeReader("Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Election;Data Source=."); //suprema.InitializeReader("DSN=FP;Uid=;Pwd=;"); //suprema.Enroll((Guid.NewGuid()).ToString(), ""); if (suprema.Enroll(txt_NationalID.Text, "") == false) { MessageBox.Show("هذه البصمة مسجلة باسم شخص آخر", "Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { UpdateElectorTable(); MessageBox.Show("تم تسجيل بياناتك بنجاح", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); } btn_TakeFingerPrint.Enabled = false; txt_NationalID.Text = ""; Txt_ElectorName.Text = ""; //button2.Enabled = true; // MessageBox.Show(suprema.GetCardID()); // MessageBox.Show( suprema.GetCardID()); }
private void Btn_TakeFingerPrint_Click(object sender, EventArgs e) { Suprema suprema = new Suprema(); //suprema.InitializeReader("Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=FingerPrint;Data Source=."); suprema.InitializeReader("Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Election;Data Source=."); //suprema.InitializeReader("Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Election;Data Source=."); suprema.InitializeReader("DSN=FP;Uid=;Pwd=;"); //suprema.Enroll((Guid.NewGuid()).ToString(), ""); if (suprema.Enroll((Guid.NewGuid()).ToString(), "") == false) { MessageBox.Show("This fingerprint is used for another person"); } // MessageBox.Show(suprema.GetCardID()); // MessageBox.Show( suprema.GetCardID()); }