public void MoveHighlight (bool right)
		{
			var newIndex = _highlighedIndex + (right ? 1 : -1);
			if (0 <= newIndex && newIndex < _pointDrawingInfos.Count) {
				_highlighedIndex = newIndex;
				_highlighedPoint = _pointDrawingInfos [_highlighedIndex];
				HighlightRoutes ();
			}
		}
		public void ResetPoints (List<PointDirection> pointDirections)
		{
			if (pointDirections == null || pointDirections.Count == 0)
				return;
			_pointDrawingInfos = pointDirections.Select (x => new PointDrawingInfo { Point = x.Point, Dir = x.Direction }).ToList ();
			_highlighedIndex = 0;
			_highlighedPoint = _pointDrawingInfos [0];
			if (Inited) OnUiThread(() => RefreshMap ());
		}
Esempio n. 3
0
        public void MoveHighlight(bool right)
        {
            var newIndex = _highlighedIndex + (right ? 1 : -1);

            if (0 <= newIndex && newIndex < _pointDrawingInfos.Count)
            {
                _highlighedIndex = newIndex;
                _highlighedPoint = _pointDrawingInfos [_highlighedIndex];
                HighlightRoutes();
            }
        }
Esempio n. 4
0
 public void ResetPoints(List <PointDirection> pointDirections)
 {
     if (pointDirections == null || pointDirections.Count == 0)
     {
         return;
     }
     _pointDrawingInfos = pointDirections.Select(x => new PointDrawingInfo {
         Point = x.Point, Dir = x.Direction
     }).ToList();
     _highlighedIndex = 0;
     _highlighedPoint = _pointDrawingInfos [0];
     if (Inited)
     {
         OnUiThread(() => RefreshMap());
     }
 }