Beispiel #1
0
        public IList <GPSPointViewModel> GetLapPoints(LapViewModel lapToSelect)
        {
            if (lapToSelect == null)
            {
                return(new List <GPSPointViewModel>());
            }
            var startIndex = gpsPoints.IndexOf(lapToSelect.StartPoint);
            var endIndex   = gpsPoints.IndexOf(lapToSelect.EndPoint);

            return(gpsPoints.Skip(startIndex).Take(endIndex - (startIndex - 1)).ToList());
        }
Beispiel #2
0
        public void SelectLap(LapViewModel lapToSelect)
        {
            var lapPoints = viewModel.GetLapPoints(lapToSelect);

            map.SelectLap(lapPoints);
        }
 public usrLapPushpinInfo(LapViewModel lap)
 {
     InitializeComponent();
     DataContext = lap;
 }