public void EditingHuman(object humanObj) { // Remove the old human. Human oldHuman = (Human)humanObj; int index = Humans.GetHumanIndex(oldHuman); Humans.RemoveHuman(oldHuman); // Update the old human. Humans.AddHuman(HumanNameToEdit, HumanSurnameToEdit, HumanSexToEdit, HumanAgeToEdit); }
public void AddingHuman(object parameter) { Humans.AddHuman(HumanNameToAdd, HumanSurnameToAdd, HumanSexToAdd, HumanAgeToAdd); }