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


UCC Code Repository

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

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

revision 97 by rvvs89, Tue Oct 12 22:01:08 2010 UTC revision 98 by rvvs89, Wed Oct 13 01:09:10 2010 UTC
# Line 97  namespace MetadataPlugin.Source Line 97  namespace MetadataPlugin.Source
97    
98          public void CalculateSelectedRegion(out DateTime start, out DateTime end)          public void CalculateSelectedRegion(out DateTime start, out DateTime end)
99          {          {
             IRouteControl control = MetadataRouteControlLayer.Instances[0].Control;  
             IGPSRoute route = CollectionUtils.GetSingleItemOfType<IActivity>(MetadataActivityReportPages.View.SelectionProvider.SelectedItems).GPSRoute;  
100              start = DateTime.MaxValue;              start = DateTime.MaxValue;
101              end = DateTime.MinValue;              end = DateTime.MinValue;
102                IRouteControl control = MetadataRouteControlLayer.Instances[0].Control;
103                IActivity activity = CollectionUtils.GetSingleItemOfType<IActivity>(MetadataActivityReportPages.View.SelectionProvider.SelectedItems);
104                if (activity == null)
105                {
106                    return;
107                }
108                IGPSRoute route = activity.GPSRoute;
109              for (int k = 0; k < control.SelectedItems.Count; k++)              for (int k = 0; k < control.SelectedItems.Count; k++)
110              {              {
111                  IRouteControlSelection selection = control.SelectedItems[k];                  IRouteControlSelection selection = control.SelectedItems[k];

Legend:
Removed from v.97  
changed lines
  Added in v.98

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26