internal static bool LoadLands(Facet facet) // return true if lands were loaded correctly { using (var conn = DataAccess.GetSQLConnection()) { try { SqlStoredProcedure sp = new SqlStoredProcedure("prApp_Land_Select", conn); DataTable dtLands = sp.ExecuteDataTable(); foreach (DataRow dr in dtLands.Rows) { facet.Add(new Land(facet.FacetID, dr)); Utils.Log("Added Land: " + dr["Name"].ToString() + " to Facet: " + facet.Name, Utils.LogType.SystemGo); } return(true); } catch (Exception e) { Utils.LogException(e); return(false); } } }