/[cits3200i]/branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/MetadataList.cs


UCC Code Repository

Diff of /branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/MetadataList.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 92 by rvvs89, Tue Oct 12 22:01:08 2010 UTC revision 93 by rvvs89, Tue Oct 12 22:22:23 2010 UTC
# Line 85  namespace MetadataPlugin.Source Line 85  namespace MetadataPlugin.Source
85    
86          public void SelectRegion(IMetadata item)          public void SelectRegion(IMetadata item)
87          {          {
88              // TODO              IRouteControlItem selected = MetadataRouteControlLayer.Instances[0].Control.Items[0];
89                DateTime start = selected.Item.GPSRoute.StartTime;
90                DateTime end = selected.Item.GPSRoute.StartTime.AddSeconds(selected.Item.GPSRoute.TotalElapsedSeconds);
91                switch(item.Location)
92                {
93                    case MetadataLocation.POINT:
94                        start = item.Point;
95                        end = item.Point;
96                        break;
97                    case MetadataLocation.RANGE:
98                        start = item.Point;
99                        end = item.End;
100                        break;
101                }
102                MetadataRouteControlSelection selection = new MetadataRouteControlSelection(selected, start, end);
103                MetadataRouteControlLayer.Instances[0].Control.SelectedItems = new List<IRouteControlSelection> { selection };
104          }          }
105    
106          public void Invalidate(IMetadata item)          public void Invalidate(IMetadata item)

Legend:
Removed from v.92  
changed lines
  Added in v.93

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26