Exemplo n.º 1
0
 //Deletes the Estate chosen in the GUI from the list of Estates
 public List <Estate> DeleteEstate(int ID)
 {
     for (int i = 0; i < em.Count; i++)
     {
         if (em.GetAt(i).estateID == ID)
         {
             em.DeleteAt(i);
         }
     }
     SetChanged();
     return(em.getList());
 }
Exemplo n.º 2
0
 public List <Estate> NewFile()
 {
     em         = new EstateManager();
     hasChanged = false;
     filepath   = "";
     estateID   = 0;
     return(em.getList());
 }