Exemple #1
0
 /// <summary>
 /// method to remove people, who didnt pay for the month and service
 /// </summary>
 /// <param name="residentlist"></param>
 /// <param name="notpaidservices"></param>
 /// <returns></returns>
 public static ResidentList ResidentRemoval(ResidentList residentlist, ResidentList notpaidservices)
 {
     for (residentlist.Beginning(); residentlist.Exist(); residentlist.Next())
     {
         for (notpaidservices.Beginning(); notpaidservices.Exist(); notpaidservices.Next())
         {
             if (residentlist.Get() == notpaidservices.Get())
             {
                 residentlist.Remove(residentlist.GetNode());
             }
         }
     }
     return(residentlist);
 }