コード例 #1
0
        private void AddMessageWithElapsedTime(Infraccion mobileEvent, IEnumerable <List <RoutePosition> > routes)
        {
            var positions = GetMessagePositions(mobileEvent, routes);

            var line = new Line(mobileEvent.Fecha.ToString(), StyleFactory.GetRedLine());

            line.AddPoint(new Point(mobileEvent.Fecha.ToString(), mobileEvent.Longitud, mobileEvent.Latitud));

            for (var i = 0; i < positions.Count; i++)
            {
                line.AddPoint(new Point(i.ToString("#0"), positions[i].Longitude, positions[i].Latitude));
            }

            line.AddPoint(new Point(mobileEvent.FechaFin.Value.ToString(), mobileEvent.LongitudFin, mobileEvent.LatitudFin));

            Monitor.AddGeometries(Layers.MensajesDuracion, line);
        }