Esempio n. 1
0
        ITRoute IStorageService.GetRouteByID(long n)
        {
            ITRoute iRoute = null;

            TRoute tRoute = _Sb.TRoutes.FirstOrDefault(obj => obj.n == n);

            if (tRoute != null)
            {
                iRoute = new OTRoute(tRoute) as ITRoute;
            }
            return(iRoute);
        }
Esempio n. 2
0
        ITRoute IStorageService.ModifyRoute(ITRoute iRoute, long nBusFK, float rLat1, float rLong1, float rLat2, float rLong2, string stripDetails, bool fCommitNow)
        {
            TRoute tRoute = (iRoute as OTRoute)._oMoniker;

            tRoute.nBusFK  = nBusFK;
            tRoute.rLat1   = rLat1;
            tRoute.rLong1  = rLong1;
            tRoute.rLat2   = rLat2;
            tRoute.rLong2  = rLong2;
            tRoute.bStatus = true;

            OTRoute objRoute = new OTRoute(tRoute);

            if (fCommitNow)
            {
                _Sb.SubmitChanges();
            }

            return(objRoute);
        }