//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()); }
public List <Estate> NewFile() { em = new EstateManager(); hasChanged = false; filepath = ""; estateID = 0; return(em.getList()); }