예제 #1
0
        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);
        }
예제 #2
0
 public void AddingHuman(object parameter)
 {
     Humans.AddHuman(HumanNameToAdd, HumanSurnameToAdd, HumanSexToAdd, HumanAgeToAdd);
 }