public void CopyLocation(GeoLocation locationFrom) { LocationHelper.CopyLocation(locationFrom, Location); //TODO разобраться почему эти поля не вычисляются в штатном порядке strRegion = Location.Region == null ? String.Empty : Location.Region.strRegionName; strRayon = Location.Rayon == null ? String.Empty : Location.Rayon.strRayonName; strSettlement = Location.Settlement == null ? String.Empty : Location.Settlement.strSettlementName; dblLatitude = Location.dblLatitude; dblLongitude = Location.dblLongitude; }
public VsSessionSummary Create ( DbManagerProxy manager , VsSession session , GeoLocation location ) { var summary = (Instance(null)).CreateNewT(manager, session); LocationHelper.CopyLocation(session.Location, summary.Location); return(summary); }