コード例 #1
0
        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;
        }
コード例 #2
0
            public VsSessionSummary Create
            (
                DbManagerProxy manager
                , VsSession session
                , GeoLocation location
            )
            {
                var summary = (Instance(null)).CreateNewT(manager, session);

                LocationHelper.CopyLocation(session.Location, summary.Location);
                return(summary);
            }