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


UCC Code Repository

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

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

revision 93 by rvvs89, Tue Oct 12 22:22:23 2010 UTC revision 94 by rvvs89, Tue Oct 12 22:55:25 2010 UTC
# Line 65  namespace MetadataPlugin.Source Line 65  namespace MetadataPlugin.Source
65          {          {
66              MetadataRouteControlLayer.Instances[0].CurrentList.SelectRegion(data);              MetadataRouteControlLayer.Instances[0].CurrentList.SelectRegion(data);
67          }          }
68    
69            private void changeToEntireRouteToolStripMenuItem_Click(object sender, EventArgs e)
70            {
71                data.Location = MetadataLocation.TRACK;
72                MetadataRouteControlLayer.Instances[0].CurrentList.Invalidate(data);
73            }
74    
75            private void moveToSelectedToolStripMenuItem_Click(object sender, EventArgs e)
76            {
77                DateTime start;
78                DateTime end;
79                MetadataRouteControlLayer.Instances[0].CalculateSelectedRegion(out start, out end);
80                if (start != end)
81                {
82                    data.Location = MetadataLocation.RANGE;
83                    data.Point = start;
84                    data.End = end;
85                }
86                else
87                {
88                    data.Location = MetadataLocation.POINT;
89                    data.Point = start;
90                }
91                MetadataRouteControlLayer.Instances[0].CurrentList.Invalidate(data);
92            }
93    
94            public bool SupportsTrackSelection
95            {
96                set { changeToEntireRouteToolStripMenuItem.Enabled = value; }
97            }
98    
99            public bool SupportsSelectedRegion
100            {
101                set { moveToSelectedToolStripMenuItem.Enabled = value; }
102            }
103      }      }
104  }  }

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

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26