Beispiel #1
0
        public async Task UpdateLotInStack(Task <List <int> > lots, StackLayout stack)
        {
            await  lots;
            int    i   = 0;
            double lat = 0;
            double lon = 0;

            var lot = map.GetLotById(mCampusName, lots.Result.First());

            stack.Children[0].BindingContext = new { LotID = lot.GetName() };
            //stack.Children[1].BindingContext = new { Percent = lot.Result.Percentage };

            /*foreach (Location loc in lot.Result.Locations)
             * {
             *      lat +=loc.Lat;
             *      lon += loc.Long;
             *      i += 1;
             * }
             * stack.Children[3].BindingContext = new { Pos = new Position(lat / i, lon / i) };*/
        }