Commit 8eb8f69
Changed files (8)
trunk
build
lib
app
dock.panel.suite
product
MyMoney
Infrastructure
transactions2
Presentation
Views
trunk/build/lib/app/dock.panel.suite/license.txt
@@ -0,0 +1,9 @@
+The MIT License
+
+Copyright (c) 2007 Weifen Luo (email: weifenluo@yahoo.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
trunk/build/lib/app/dock.panel.suite/WeifenLuo.WinFormsUI.Docking.dll
Binary file
trunk/product/MyMoney/Infrastructure/transactions2/UnitOfWork.cs
@@ -11,13 +11,13 @@ namespace MoMoney.Infrastructure.transactions2
public class UnitOfWork : IUnitOfWork
{
readonly ISession session;
- readonly IContext request;
+ readonly IContext context;
readonly IKey<ISession> key;
- public UnitOfWork(ISession session, IContext request, IKey<ISession> key)
+ public UnitOfWork(ISession session, IContext context, IKey<ISession> key)
{
this.session = session;
- this.request = request;
+ this.context = context;
this.key = key;
}
@@ -33,7 +33,7 @@ namespace MoMoney.Infrastructure.transactions2
public void Dispose()
{
- request.remove(key);
+ context.remove(key);
session.Dispose();
}
}
trunk/product/MyMoney/Infrastructure/transactions2/UnitOfWorkFactory.cs
@@ -12,9 +12,9 @@ namespace MoMoney.Infrastructure.transactions2
readonly ISessionFactory factory;
readonly IKey<ISession> key;
- public UnitOfWorkFactory(IContext current_request, ISessionFactory factory, IKey<ISession> key)
+ public UnitOfWorkFactory(IContext context, ISessionFactory factory, IKey<ISession> key)
{
- context = current_request;
+ this.context = context;
this.key = key;
this.factory = factory;
}
trunk/product/MyMoney/Modules/GettingStartedModule.cs
@@ -25,8 +25,7 @@ namespace MoMoney.Modules
public void run()
{
- broker.subscribe_to<NewProjectOpened>(this);
- broker.subscribe_to<ClosingProjectEvent>(this);
+ broker.subscribe(this);
command.run<IGettingStartedPresenter>();
}
trunk/product/MyMoney/Modules/GettingStartedModuleSpecs.cs
@@ -1,6 +1,5 @@
using developwithpassion.bdd.contexts;
using MoMoney.Infrastructure.eventing;
-using MoMoney.Presentation.Model.messages;
using MoMoney.Presentation.Presenters.Commands;
using MoMoney.Testing.spechelpers.contexts;
using MoMoney.Testing.spechelpers.core;
@@ -18,14 +17,13 @@ namespace MoMoney.Modules
command = the_dependency<IRunPresenterCommand>();
};
- protected static IEventAggregator broker;
- protected static IRunPresenterCommand command;
+ static protected IEventAggregator broker;
+ static protected IRunPresenterCommand command;
}
public class when_initializing_the_getting_started_module : behaves_like_the_getting_started_module
{
- it should_start_listening_for_when_a_new_project_is_started =
- () => broker.was_told_to(x => x.subscribe_to<NewProjectOpened>(sut));
+ it should_start_listening_for_when_a_new_project_is_started = () => broker.was_told_to(x => x.subscribe((GettingStartedModule)sut));
because b = () => sut.run();
}
trunk/product/MyMoney/Presentation/Views/core/ApplicationDockedWindow.Designer.cs
@@ -1,4 +1,6 @@
-namespace MoMoney.Presentation.Views.core
+using MoMoney.Infrastructure.Extensions;
+
+namespace MoMoney.Presentation.Views.core
{
partial class ApplicationDockedWindow
{
@@ -13,6 +15,7 @@
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
+ this.log().debug("disposing: {0}", this);
if (disposing && (components != null))
{
components.Dispose();
trunk/product/MyMoney/MyMoney.csproj
@@ -719,7 +719,6 @@
</Compile>
<Compile Include="Presentation\Views\Menu\Help\IAboutApplicationView.cs" />
<Compile Include="Presentation\Views\Shell\ApplicationShell.cs">
- <SubType>Form</SubType>
</Compile>
<Compile Include="Presentation\Views\Shell\ApplicationShell.Designer.cs">
<DependentUpon>ApplicationShell.cs</DependentUpon>