/************************ * Create New User Tab * * *********************/ private void CreateNewUserButton_MouseClick(object sender, MouseEventArgs e) { personCreated = new Person(FirstNameEntry.Text, LastNameEntry.Text, "", null); if (!DBUserInterface.Instance.VerifyExistence(personCreated)) { Step2GroupBox.Visible = true; } else { MessageBox.Show("This user already exists"); } }
public void Save(Person p) { personList.Add(p); }
public bool VerifyExistence(Person p) { return personList.Contains(p); }
public bool ReadCard(int cardNum, CardReaderPanel panel) { Card c = DoorAccessController.Instance.ValidateCard(cardNum); if (activityMode && c != null) { curPerson = IdentifyPerson(c); attempts = 0; return true; } return false; }