Exemplo n.º 1
0
        public MapPointCall(DistEvaluator distEvaluator)
        {
            this.mDistEvaluator = distEvaluator;
            this.mMapPoint      = new MapPoint.ApplicationClass();
            this.mMapPoint.Application.Units = MapPoint.GeoUnits.geoKm;
            this.mMapPoint.Visible           = false;
            this.mMapPoint.UserControl       = true;

            //Configure l'application
            mMap   = this.mMapPoint.ActiveMap;
            mRoute = mMap.ActiveRoute;

            mMap.Parent.PaneState = MapPoint.GeoPaneState.geoPaneRoutePlanner;
        }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     if (args.Length < 3 || args.Length > 4)
     {
         Console.Error.WriteLine("Usage: MapPointDist coordFile outputFile symmetric [numThreads]");
     }
     else
     {
         int           numThreads = args.Length == 4 ? Convert.ToInt32(args[3]) : 1;
         bool          symmetric  = Convert.ToBoolean(args[2]);
         DistEvaluator prog       = new DistEvaluator(args[0], args[1], symmetric, numThreads);
         prog.Run();
     }
 }
Exemplo n.º 3
0
 static void Main(string[] args)
 {
     if (args.Length < 3 || args.Length > 4)
     {
         Console.Error.WriteLine("Usage: MapPointDist coordFile outputFile symmetric [numThreads]");
     }
     else
     {
         int numThreads = args.Length == 4 ? Convert.ToInt32(args[3]) : 1;
         bool symmetric = Convert.ToBoolean(args[2]);
         DistEvaluator prog = new DistEvaluator(args[0], args[1], symmetric,numThreads);
         prog.Run();
     }
 }
Exemplo n.º 4
0
        public MapPointCall(DistEvaluator distEvaluator)
        {
            this.mDistEvaluator = distEvaluator;
            this.mMapPoint = new MapPoint.ApplicationClass();
            this.mMapPoint.Application.Units = MapPoint.GeoUnits.geoKm;
            this.mMapPoint.Visible = false;
            this.mMapPoint.UserControl = true;

            //Configure l'application
            mMap = this.mMapPoint.ActiveMap;
            mRoute = mMap.ActiveRoute;

            mMap.Parent.PaneState = MapPoint.GeoPaneState.geoPaneRoutePlanner;
        }