Commit 729fec3

mokhan <mokhan@ce5e1baf-6525-42e4-a1b2-857ea38da20a>
2009-03-27 04:18:31
cleanup.
git-svn-id: https://svn.xp-dev.com/svn/mokhan-mo.money@118 ce5e1baf-6525-42e4-a1b2-857ea38da20a
1 parent 9c9eee7
Changed files (5)
trunk
product
MyMoney
trunk/product/MyMoney/boot/container/wire_up_the_container.cs
@@ -17,8 +17,7 @@ namespace MoMoney.boot.container
         {
         }
 
-        public wire_up_the_container(IDependencyRegistration registry,
-                                     IComponentExclusionSpecification specification)
+        public wire_up_the_container(IDependencyRegistration registry, IComponentExclusionSpecification specification)
         {
             this.registry = registry;
             this.specification = specification;
trunk/product/MyMoney/Presentation/Presenters/Shell/ToolbarModule.cs
@@ -27,10 +27,8 @@ namespace MoMoney.Presentation.Presenters.Shell
 
         public void run()
         {
-            broker.subscribe_to<NewProjectOpened>(this);
-            broker.subscribe_to<ClosingProjectEvent>(this);
-            broker.subscribe_to<SavedChangesEvent>(this);
-            broker.subscribe_to<UnsavedChangesEvent>(this);
+            broker.subscribe(this);
+            command.run<IToolbarPresenter>();
         }
 
         public void notify(NewProjectOpened message)
trunk/product/MyMoney/Utility/Core/chained_command.cs → trunk/product/MyMoney/Utility/Core/ChainedCommand.cs
@@ -1,11 +1,11 @@
 namespace MoMoney.Utility.Core
 {
-    internal class chained_command : ICommand
+    public class ChainedCommand : ICommand
     {
         private readonly ICommand left;
         private readonly ICommand right;
 
-        public chained_command(ICommand left, ICommand right)
+        public ChainedCommand(ICommand left, ICommand right)
         {
             this.left = left;
             this.right = right;
trunk/product/MyMoney/Utility/Extensions/command_extensions.cs → trunk/product/MyMoney/Utility/Extensions/CommandExtensions.cs
@@ -5,7 +5,7 @@ using MoMoney.Utility.Core;
 
 namespace MoMoney.Utility.Extensions
 {
-    public static class command_extensions
+    public static class CommandExtensions
     {
         public static ICommand then<Command>(this ICommand left) where Command : ICommand, new()
         {
@@ -14,17 +14,17 @@ namespace MoMoney.Utility.Extensions
 
         public static ICommand then(this ICommand left, ICommand right)
         {
-            return new chained_command(left, right);
+            return new ChainedCommand(left, right);
         }
 
         public static ICommand then(this ICommand left, Action right)
         {
-            return new chained_command(left, new ActionCommand(right));
+            return new ChainedCommand(left, new ActionCommand(right));
         }
 
         public static ICommand as_command_chain(this IEnumerable<ICommand> commands)
         {
-            var processor = new CommandProcessor();
+            var processor = new AsynchronousCommandProcessor();
             commands.each(processor.add);
             return processor;
         }
trunk/product/MyMoney/MyMoney.csproj
@@ -669,8 +669,8 @@
     <Compile Include="Presentation\Views\Startup\SplashScreenView.Designer.cs">
       <DependentUpon>SplashScreenView.cs</DependentUpon>
     </Compile>
-    <Compile Include="Utility\Core\chained_command.cs" />
-    <Compile Include="Utility\Extensions\command_extensions.cs" />
+    <Compile Include="Utility\Core\ChainedCommand.cs" />
+    <Compile Include="Utility\Extensions\CommandExtensions.cs" />
     <Compile Include="Utility\Extensions\TypeExtensions.cs" />
     <Compile Include="Utility\Extensions\TypeExtensionsSpecs.cs" />
     <Compile Include="Utility\Extensions\visitor_extensions.cs" />