//Set the information of a child of a certain day, if that
        //information already exists, replace it with the new information
        public void SetEditInformation(InformationOfDay i)
        {
            bool found = false;

            for (int j = 0; j < listInformationAllDays.Count && !found; j++)
            {
                if ((i.GetCod() == listInformationAllDays[j].GetCod()) &&
                    (listInformationAllDays[j].GetDay().Equals(i.GetDay())))
                {
                    listInformationAllDays.Remove(listInformationAllDays[j]);
                    SetInformation(i);
                    found = true;
                }
            }
        }
 public int CompareInformation(InformationOfDay i1, InformationOfDay i2)
 {
     return(i1.GetCod() - i2.GetCod());
 }