Commit a17ce3f

unknown <mo@.(none)>
2009-09-06 04:39:51
displaying the runnig query/command in the task tray message.
1 parent b8f813c
Changed files (2)
product
product/Presentation/Presenters/StatusBarPresenter.cs
@@ -66,14 +66,12 @@ namespace MoMoney.Presentation.Presenters
 
         public void notify(StartedRunningCommand message)
         {
-            //view.display(ApplicationIcons.hour_glass, "Running... {0}".formatted_using(message.running_action));
             timer.start_notifying(view, new TimeSpan(1));
         }
 
         public void notify(FinishedRunningCommand message)
         {
             timer.stop_notifying(view);
-            //view.display(ApplicationIcons.green_circle, "Ready");
             view.reset_progress_bar();
         }
     }
product/Presentation/Presenters/TaskTrayPresenter.cs
@@ -1,3 +1,4 @@
+using Gorilla.Commons.Utility.Extensions;
 using MoMoney.Presentation.Model.messages;
 using MoMoney.Presentation.Views.Shell;
 using MoMoney.Service.Infrastructure.Eventing;
@@ -6,6 +7,8 @@ namespace MoMoney.Presentation.Presenters.Shell
 {
     public interface ITaskTrayPresenter : IModule,
                                           IEventSubscriber<SavedChangesEvent>,
+                                          IEventSubscriber<StartedRunningCommand>,
+                                          IEventSubscriber<FinishedRunningCommand>,
                                           IEventSubscriber<NewProjectOpened>
     {
     }
@@ -38,5 +41,15 @@ namespace MoMoney.Presentation.Presenters.Shell
         {
             view.display("opened {0}", message.path);
         }
+
+        public void notify(StartedRunningCommand message)
+        {
+            view.display("Running... {0}".formatted_using(message.running_action));
+        }
+
+        public void notify(FinishedRunningCommand message)
+        {
+            view.display("Finished... {0}".formatted_using(message.completed_action));
+        }
     }
 }
\ No newline at end of file