Ejemplo n.º 1
0
        private void buttOpenTrack_Click(object sender, EventArgs e)
        {
            if (coordinates != null)
            {
                coordinates.close();
            }

            if (delaunayListener != null)
            {
                delaunayListener.Detach();
            }

            map.mapDraw.drawFromStatus = MOBMAP.MAP.MapDraw.DrawFromStatus.DRAW_FROM_DB;
            map.mapDraw.isDbReading    = true;
            coordinates           = new Coordinates.CoordinateSystem(this);
            delaunayTriangulation = new MOBMAP.Triangulation.DelaunayEventChanged();
            delaunayListener      = new MOBMAP.Triangulation.DelaunayListEventListener(this, delaunayTriangulation);
            mapSimulation         = new MOBMAP.MAP.MapSimulation(this.map);
            mapGoogle             = new MOBMAP.MapGoogle.MapGoogle(this.pBoxMap.Width, this.pBoxMap.Height);

            if (cBoxTrackID.SelectedItem != null)
            {
                setTrackData((int)cBoxTrackID.SelectedItem);
            }
        }
Ejemplo n.º 2
0
        private void buttOpenTrack_Click(object sender, EventArgs e)
        {
            if(coordinates!=null)
                coordinates.close();

            if (delaunayListener != null)
                delaunayListener.Detach();

            map.mapDraw.drawFromStatus = MOBMAP.MAP.MapDraw.DrawFromStatus.DRAW_FROM_DB;
            map.mapDraw.isDbReading = true;
            coordinates = new Coordinates.CoordinateSystem(this);
            delaunayTriangulation = new MOBMAP.Triangulation.DelaunayEventChanged();
            delaunayListener = new MOBMAP.Triangulation.DelaunayListEventListener(this, delaunayTriangulation);
            mapSimulation = new MOBMAP.MAP.MapSimulation(this.map);
            mapGoogle = new MOBMAP.MapGoogle.MapGoogle(this.pBoxMap.Width, this.pBoxMap.Height);

            if (cBoxTrackID.SelectedItem != null)
            {
                setTrackData((int)cBoxTrackID.SelectedItem);

            }
        }