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


UCC Code Repository

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

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

revision 93 by rvvs89, Tue Oct 12 22:01:08 2010 UTC revision 94 by rvvs89, Tue Oct 12 22:55:25 2010 UTC
# Line 13  namespace MetadataPlugin.Source Line 13  namespace MetadataPlugin.Source
13      class AddToRangeAction : IAction      class AddToRangeAction : IAction
14      {      {
15          private IActivity activity;          private IActivity activity;
         private IDailyActivityView view;  
16          private IList<string> menuPath = new List<string> { "Metadata" };          private IList<string> menuPath = new List<string> { "Metadata" };
17          private DateTime start;          private DateTime start;
18          private DateTime end;          private DateTime end;
19    
         public AddToRangeAction(IDailyActivityView view)  
         {  
             this.view = view;  
         }  
   
20          public bool Enabled          public bool Enabled
21          {          {
22              get              get
# Line 49  namespace MetadataPlugin.Source Line 43  namespace MetadataPlugin.Source
43    
44          public void Refresh()          public void Refresh()
45          {          {
46              activity = CollectionUtils.GetSingleItemOfType<IActivity>(view.SelectionProvider.SelectedItems);              activity = CollectionUtils.GetSingleItemOfType<IActivity>(MetadataActivityReportPages.View.SelectionProvider.SelectedItems);
47              MetadataRouteControlLayer.Instances[0].CalculateSelectedRegion(out start, out end);              MetadataRouteControlLayer.Instances[0].CalculateSelectedRegion(out start, out end);
48          }          }
49    

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

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26