コード例 #1
0
        //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;
                }
            }
        }
コード例 #2
0
 public int CompareInformation(InformationOfDay i1, InformationOfDay i2)
 {
     return(i1.GetCod() - i2.GetCod());
 }