private bool validate(string id) { Classone cls = new Classone(); string UID = cls.rfid2system(id); //MessageBox.Show(UID + " - " + id); //validate using ucs if (UID.Substring(0, 3) == "UCS") { MessageBox.Show("This Proximity Card is Already in The System"); return(false); } else { return(true); } }
private bool validate(string idf) { Classone cls = new Classone(); string UID = cls.rfid2system(idf); //MessageBox.Show(UID + " - " + id); //validate using ucs if (UID.Substring(0, 3) == "UCS") { id = UID; this.Show(); return(true); } else { MessageBox.Show("Wrong user ID Sorry!"); return(false); } }