public ExportRouteDataDialog(ExportRouteDataSettings settings)
        {
            InitializeComponent();

              samplingIntervalDropdown.Text = settings.SamplingInterval.TotalSeconds.ToString();

              // (*) handling buggy multiple occurrences of route property types
              var routePropertyTypes = new List<Type>();

              // add the names and visibility status of the route properties
              foreach (var item in settings.RoutePropertyTypes)
              {
            if (!routePropertyTypes.Contains(item.RoutePropertyType)) // (*)
            {
              routePropertyTypeCheckboxList.Items.Add(item, item.Selected);
              routePropertyTypes.Add(item.RoutePropertyType); // (*)
            }
              }
              zeroTime = settings.ZeroTime;
        }
 public RouteDataExporter(Session session, Stream outputStream)
 {
     this.session = session;
       this.outputStream = outputStream;
       Settings = new ExportRouteDataSettings();
 }
Example #3
0
 public RouteDataExporter(Session session, Stream outputStream)
 {
     this.session      = session;
     this.outputStream = outputStream;
     Settings          = new ExportRouteDataSettings();
 }