示例#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);
            }
        }
示例#2
0
        //start gps
        private void mItGpsStart_Click(object sender, EventArgs e)
        {
            map.mapDraw.isDbReading = false;
            if (coordinates != null)
            {
                coordinates.close();
            }
            if (delaunayListener != null)
            {
                delaunayListener.Detach();
            }
            coordinates                = new Coordinates.CoordinateSystem(this);
            delaunayTriangulation      = new MOBMAP.Triangulation.DelaunayEventChanged();
            delaunayListener           = new MOBMAP.Triangulation.DelaunayListEventListener(this, delaunayTriangulation);
            map.mapDraw.drawFromStatus = MOBMAP.MAP.MapDraw.DrawFromStatus.DRAW_FROM_GPS;
            mapGoogle = new MOBMAP.MapGoogle.MapGoogle(this.pBoxMap.Width, this.pBoxMap.Height);

            //create gps connection
            gpsPositionList            = new MOBMAP.GPS.Position <GpsPosition>(this);
            timerCoordinates.Enabled   = true;
            timerPositionSave.Enabled  = true;
            timerSatelliteView.Enabled = true;
            coordinates  = new Coordinates.CoordinateSystem(this);
            gpsConnector = new GPS.GpsConnector(this);
            gpsConnector.isClosingGps = false;
            mItGpsStart.Enabled       = false;
            mItGpsStop.Enabled        = true;
        }
示例#3
0
        public Form1()
        {
            InitializeComponent();

            //take databaseHandler
            _db = Database.Database.getDatabaseHandler();

            //if database doesn't exist initialize database
            if (!_db.hasDatabase)
            {
                _db.initDatabase();
            }

            setCBoxTrackID();
            mapGoogle = new MOBMAP.MapGoogle.MapGoogle(this.pBoxMap.Width, this.pBoxMap.Height);
        }
示例#4
0
        public Form1()
        {
            InitializeComponent();

            //take databaseHandler
            _db = Database.Database.getDatabaseHandler();

            //if database doesn't exist initialize database
            if (!_db.hasDatabase)
            {
                _db.initDatabase();
            }


            setCBoxTrackID();
            mapGoogle = new MOBMAP.MapGoogle.MapGoogle(this.pBoxMap.Width, this.pBoxMap.Height);
        }
示例#5
0
        //start gps
        private void mItGpsStart_Click(object sender, EventArgs e)
        {
            map.mapDraw.isDbReading = false;
            if (coordinates != null)
                coordinates.close();
            if (delaunayListener != null)
                delaunayListener.Detach();
            coordinates = new Coordinates.CoordinateSystem(this);
            delaunayTriangulation = new MOBMAP.Triangulation.DelaunayEventChanged();
            delaunayListener = new MOBMAP.Triangulation.DelaunayListEventListener(this, delaunayTriangulation);
            map.mapDraw.drawFromStatus = MOBMAP.MAP.MapDraw.DrawFromStatus.DRAW_FROM_GPS;
            mapGoogle = new MOBMAP.MapGoogle.MapGoogle(this.pBoxMap.Width, this.pBoxMap.Height);

            //create gps connection
            gpsPositionList = new MOBMAP.GPS.Position<GpsPosition>(this);
            timerCoordinates.Enabled = true;
            timerPositionSave.Enabled = true;
            timerSatelliteView.Enabled = true;
            coordinates = new Coordinates.CoordinateSystem(this);
            gpsConnector = new GPS.GpsConnector(this);
            gpsConnector.isClosingGps = false;
            mItGpsStart.Enabled = false;
            mItGpsStop.Enabled = true;
        }
示例#6
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);

            }
        }
示例#7
0
 public MapGoogleUrlBuilder(MapGoogle map)
 {
     this.mapGoogle = map;
 }
示例#8
0
 public MapGoogleUrlBuilder(MapGoogle map)
 {
     this.mapGoogle = map;
 }