示例#1
0
 internal ElevationProfileDisplay(List <Location> locs, string units)
 {
     InitializeComponent();
     elevationProfilePictureBox.Image = ElevationProfiler.getElevationProfile(locs, units);
     this.Width  = elevationProfilePictureBox.Image.Width + 5;
     this.Height = elevationProfilePictureBox.Image.Height + 55;
     this.Text   = "Elevation Profile Display, distance in: " + units.ToString();
 }
示例#2
0
 /// <summary>
 /// write the list of directions out to the filesystem as a comma seperated value file
 /// </summary>
 public void writeOutputFile(string fileName, string units)
 {
     if (fileName.EndsWith(".csv"))
     {
         cueWriter = new CsvWriter();
     }
     else
     {
         cueWriter = new HtmlWriter();
     }
     if (_addresses != null && _addresses.Count > 0 && _turns != null)
     {
         cueWriter.writeCueSheet(fileName, _inputFileName, _addresses, _turns, units);
         _drawnOnMapImage.Save(fileName + ".bmp");
         ElevationProfiler.getElevationProfile(_path.Locations, units).Save(fileName + ".ele.bmp");
     }
     _status = cueWriter.Status;
 }