/// <summary> /// lägger till building object i listan /// </summary> public bool AddBuilding() { if (controller.AddBuilding(building)) { SQLQuery.AddBuilding(building); return(true); } return(false); }
/// <summary> /// Removes all buildings from the database /// Thereafter all the new building objects, that has been loaded from a local file, is added to the database /// </summary> public void UpdateDatabase() { SQLQuery.DeleteAllBuildings(); foreach (Building building in list) { SQLQuery.AddBuilding(building); } }