/[cits3200i]/trunk/UWAPlugins/MetadataPlugin/Source/MetadataRouteControlSelection.cs


UCC Code Repository

Contents of /trunk/UWAPlugins/MetadataPlugin/Source/MetadataRouteControlSelection.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 100 - (show annotations) (download)
Wed Oct 13 01:51:32 2010 UTC (11 years, 1 month ago) by rvvs89
File size: 971 byte(s)
Merging metadata-branch-rvvs89.
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using ZoneFiveSoftware.Common.Visuals.Mapping;
5 using ZoneFiveSoftware.Common.Data;
6
7 namespace MetadataPlugin.Source
8 {
9 class MetadataRouteControlSelection : IRouteControlSelection
10 {
11 private IRouteControlItem selected;
12 private IValueRange<DateTime> region;
13
14 public MetadataRouteControlSelection(IRouteControlItem selected, DateTime start, DateTime end)
15 {
16 this.selected = selected;
17 region = new ValueRange<DateTime>(start, end);
18 }
19 public IList<IValueRange<double>> DistanceMetersRanges
20 {
21 get { return null; }
22 }
23
24 public IRouteControlItem Item
25 {
26 get { return selected; }
27 }
28
29 public IList<IValueRange<DateTime>> TimeRanges
30 {
31 get { return new List<IValueRange<DateTime>> { region }; }
32 }
33 }
34 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26