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


UCC Code Repository

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

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

revision 87 by rvvs89, Mon Oct 11 06:42:56 2010 UTC revision 88 by rvvs89, Tue Oct 12 04:54:08 2010 UTC
# Line 13  namespace MetadataPlugin.Source Line 13  namespace MetadataPlugin.Source
13      class AddToRouteAction : IAction      class AddToRouteAction : 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    
         public AddToRouteAction(IDailyActivityView view)  
         {  
             this.view = view;  
         }  
   
18          public bool Enabled          public bool Enabled
19          {          {
20              get              get
# Line 47  namespace MetadataPlugin.Source Line 41  namespace MetadataPlugin.Source
41    
42          public void Refresh()          public void Refresh()
43          {          {
44              activity = CollectionUtils.GetSingleItemOfType<IActivity>(view.SelectionProvider.SelectedItems);              activity = CollectionUtils.GetSingleItemOfType<IActivity>(MetadataActivityReportPages.View.SelectionProvider.SelectedItems);
45          }          }
46    
47          public void Run(Rectangle rectButton)          public void Run(Rectangle rectButton)
48          {          {
49              // TODO              AddMetadataDialog.Instance.Control.MetadataLocation = MetadataLocation.TRACK;
50                AddMetadataDialog.Instance.ShowDialog();
51          }          }
52    
53          public string Title          public string Title

Legend:
Removed from v.87  
changed lines
  Added in v.88

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26