Commit 7395740
Changed files (175)
product
Boot
boot
container
registration
mapping
proxy_configuration
Presentation
Model
Menu
Presenters
Views
Winforms
Databinding
Helpers
Keyboard
Krypton
Resources
Views
product/Boot/boot/container/registration/mapping/DelegateTargetAction.cs
@@ -4,7 +4,7 @@ namespace MoMoney.boot.container.registration.mapping
{
public class DelegateTargetAction<Destination, Value> : ITargetAction<Destination, Value>
{
- private readonly Action<Destination, Value> action;
+ readonly Action<Destination, Value> action;
public DelegateTargetAction(Action<Destination, Value> action)
{
product/Boot/boot/container/registration/mapping/ExpressionSourceEvaluator.cs
@@ -5,8 +5,8 @@ namespace MoMoney.boot.container.registration.mapping
{
public class ExpressionSourceEvaluator<Input, Result> : ISourceEvaluator<Input, Result>
{
- private readonly Expression<Func<Input, Result>> original_expression;
- private Func<Input, Result> evaluator_expression;
+ readonly Expression<Func<Input, Result>> original_expression;
+ Func<Input, Result> evaluator_expression;
public ExpressionSourceEvaluator(Expression<Func<Input, Result>> original_expression)
{
@@ -19,7 +19,7 @@ namespace MoMoney.boot.container.registration.mapping
return evaluator_expression(input);
}
- private void initialize_evaluator()
+ void initialize_evaluator()
{
if (evaluator_expression != null) return;
evaluator_expression = original_expression.Compile();
product/Boot/boot/container/registration/mapping/FuncInitializationStep.cs
@@ -4,7 +4,7 @@ namespace MoMoney.boot.container.registration.mapping
{
public class FuncInitializationStep<Destination> : IMapInitializationStep<Destination>
{
- private readonly Func<Destination> func;
+ readonly Func<Destination> func;
public FuncInitializationStep(Func<Destination> func)
{
product/Boot/boot/container/registration/mapping/Map.cs
@@ -7,9 +7,9 @@ namespace MoMoney.boot.container.registration.mapping
{
public class Map<Input, Output> : IMap<Input, Output>
{
- private IMapInitializationStep<Output> map_initialization_step;
- private readonly IList<IMappingStep<Input, Output>> mapping_steps;
- private readonly IMappingStepFactory mapping_step_factory;
+ IMapInitializationStep<Output> map_initialization_step;
+ readonly IList<IMappingStep<Input, Output>> mapping_steps;
+ readonly IMappingStepFactory mapping_step_factory;
public Map() : this(new MappingStepFactory())
{
product/Boot/boot/container/registration/mapping/MappingStep.cs
@@ -2,8 +2,8 @@ namespace MoMoney.boot.container.registration.mapping
{
public class MappingStep<Input, Output, Type> : IMappingStep<Input, Output>
{
- private readonly ISourceEvaluator<Input, Type> input_evaluator;
- private readonly ITargetAction<Output, Type> action_to_run_against_destination;
+ readonly ISourceEvaluator<Input, Type> input_evaluator;
+ readonly ITargetAction<Output, Type> action_to_run_against_destination;
public MappingStep(ISourceEvaluator<Input, Type> source_evaluator, ITargetAction<Output, Type> target_action)
{
product/Boot/boot/container/registration/mapping/MappingStepFactory.cs
@@ -5,7 +5,7 @@ namespace MoMoney.boot.container.registration.mapping
{
public class MappingStepFactory : IMappingStepFactory
{
- private readonly ITargetActionFactory target_action_factory;
+ readonly ITargetActionFactory target_action_factory;
public MappingStepFactory() : this(new TargetActionFactory())
{
product/Boot/boot/container/registration/mapping/PropertyResolver.cs
@@ -9,8 +9,8 @@ namespace MoMoney.boot.container.registration.mapping
{
public class PropertyResolver : IPropertyResolver
{
- private BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic |
- BindingFlags.FlattenHierarchy;
+ BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic |
+ BindingFlags.FlattenHierarchy;
public PropertyInfo resolve_using<Input, PropertyType>(Expression<Func<Input, PropertyType>> expression)
{
@@ -49,7 +49,7 @@ namespace MoMoney.boot.container.registration.mapping
return all_properties_belonging_to(typeof (T));
}
- private PropertyInfo[] all_properties_for(Type type)
+ PropertyInfo[] all_properties_for(Type type)
{
return type.GetProperties(flags);
}
product/Boot/boot/container/registration/mapping/TargetActionFactory.cs
@@ -5,7 +5,7 @@ namespace MoMoney.boot.container.registration.mapping
{
public class TargetActionFactory : ITargetActionFactory
{
- private readonly IPropertyResolver property_resolver;
+ readonly IPropertyResolver property_resolver;
public TargetActionFactory(IPropertyResolver property_resolver)
{
product/Boot/boot/container/registration/proxy_configuration/NoConfiguration.cs
@@ -3,7 +3,7 @@ using Gorilla.Commons.Utility.Core;
namespace MoMoney.boot.container.registration.proxy_configuration
{
- internal class NoConfiguration<T> : IConfiguration<IProxyBuilder<T>>
+ class NoConfiguration<T> : IConfiguration<IProxyBuilder<T>>
{
public void configure(IProxyBuilder<T> item)
{
product/Boot/boot/container/registration/proxy_configuration/SecuringProxySpecs.cs
@@ -12,7 +12,7 @@ namespace MoMoney.boot.container.registration.proxy_configuration
}
public class when_attempting_to_perform_an_action_that_requires_authentication :
- concerns_for< SecuringProxy>
+ concerns_for<SecuringProxy>
{
context c = () => { filter = the_dependency<ISpecification<IPrincipal>>(); };
product/Boot/boot/container/registration/proxy_configuration/ServiceLayerConfiguration.cs
@@ -1,13 +1,10 @@
-using System.Security.Principal;
using Gorilla.Commons.Infrastructure;
using Gorilla.Commons.Infrastructure.Castle.DynamicProxy;
using Gorilla.Commons.Utility.Core;
-using Gorilla.Commons.Utility.Extensions;
-using MoMoney.Service.Infrastructure.Security;
namespace MoMoney.boot.container.registration.proxy_configuration
{
- internal class ServiceLayerConfiguration<T> : IConfiguration<IProxyBuilder<T>>
+ class ServiceLayerConfiguration<T> : IConfiguration<IProxyBuilder<T>>
{
public void configure(IProxyBuilder<T> item)
{
product/Boot/boot/container/registration/proxy_configuration/SynchronizedConfiguration.cs
@@ -4,7 +4,7 @@ using Gorilla.Commons.Utility.Core;
namespace MoMoney.boot.container.registration.proxy_configuration
{
- internal class SynchronizedConfiguration<T> : IConfiguration<IProxyBuilder<T>>
+ class SynchronizedConfiguration<T> : IConfiguration<IProxyBuilder<T>>
{
public void configure(IProxyBuilder<T> item)
{
product/Boot/boot/container/registration/auto_wire_components_in_to_the_specs.cs
@@ -23,8 +23,8 @@ namespace MoMoney.boot.container.registration
return new auto_wire_components_in_to_the(builder, exclusions_criteria);
}
- protected static IDependencyRegistration builder;
- protected static IComponentExclusionSpecification exclusions_criteria;
+ static protected IDependencyRegistration builder;
+ static protected IComponentExclusionSpecification exclusions_criteria;
}
public class when_registering_all_the_components_from_an_assembly :
product/Boot/boot/container/registration/wire_up_the_essential_services_into_the.cs
@@ -6,7 +6,7 @@ using Gorilla.Commons.Utility.Core;
namespace MoMoney.boot.container.registration
{
- internal class wire_up_the_essential_services_into_the : ICommand
+ class wire_up_the_essential_services_into_the : ICommand
{
readonly IDependencyRegistration registration;
product/Boot/boot/container/registration/wire_up_the_infrastructure_in_to_the.cs
@@ -2,7 +2,6 @@ using System.Collections;
using System.ComponentModel;
using System.Deployment.Application;
using Gorilla.Commons.Infrastructure;
-using Gorilla.Commons.Infrastructure.Castle.DynamicProxy.Interceptors;
using Gorilla.Commons.Infrastructure.Eventing;
using Gorilla.Commons.Infrastructure.Registries;
using Gorilla.Commons.Infrastructure.Threading;
@@ -15,7 +14,7 @@ using MoMoney.Tasks.infrastructure.updating;
namespace MoMoney.boot.container.registration
{
- internal class wire_up_the_infrastructure_in_to_the : ICommand
+ class wire_up_the_infrastructure_in_to_the : ICommand
{
readonly IDependencyRegistration registry;
@@ -33,7 +32,7 @@ namespace MoMoney.boot.container.registration
registry.transient(typeof (ITrackerEntryMapper<>), typeof (TrackerEntryMapper<>));
registry.transient(typeof (IKey<>), typeof (TypedKey<>));
registry.transient(typeof (IComponentFactory<>), typeof (ComponentFactory<>));
- registry.singleton<IContext>( ()=>new Context(new Hashtable()));
+ registry.singleton<IContext>(() => new Context(new Hashtable()));
registry.singleton(() => AsyncOperationManager.SynchronizationContext);
registry.singleton<AsyncOperation>(() => AsyncOperationManager.CreateOperation(new object()));
product/Boot/boot/container/registration/wire_up_the_mappers_in_to_the.cs
@@ -7,7 +7,7 @@ using MoMoney.DTO;
namespace MoMoney.boot.container.registration
{
- internal class wire_up_the_mappers_in_to_the : ICommand
+ class wire_up_the_mappers_in_to_the : ICommand
{
readonly IDependencyRegistration registry;
product/Boot/boot/container/registration/wire_up_the_presentation_modules.cs
@@ -11,11 +11,11 @@ using MoMoney.Presentation.Model.Menu.File;
using MoMoney.Presentation.Model.Menu.Help;
using MoMoney.Presentation.Model.Menu.window;
using MoMoney.Presentation.Presenters.Commands;
-using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Views;
namespace MoMoney.boot.container.registration
{
- internal class wire_up_the_presentation_modules : ICommand, IParameterizedCommand<IAssembly>
+ class wire_up_the_presentation_modules : ICommand, IParameterizedCommand<IAssembly>
{
readonly IDependencyRegistration registry;
@@ -31,13 +31,14 @@ namespace MoMoney.boot.container.registration
public void run(IAssembly item)
{
- Func<IApplicationController> target = () => new ApplicationController(Lazy.load<IPresenterRegistry>(), Lazy.load<IShell>());
- registry.proxy<IApplicationController, SynchronizedConfiguration<IApplicationController>>( target.memorize());
+ Func<IApplicationController> target =
+ () => new ApplicationController(Lazy.load<IPresenterRegistry>(), Lazy.load<IShell>());
+ registry.proxy<IApplicationController, SynchronizedConfiguration<IApplicationController>>(target.memorize());
registry.transient(typeof (IRunThe<>), typeof (RunThe<>));
registry.transient<IFileMenu, FileMenu>();
registry.transient<IWindowMenu, WindowMenu>();
registry.transient<IHelpMenu, HelpMenu>();
-
+
item
.all_types()
.where(x => typeof (IPresenter).IsAssignableFrom(x))
product/Boot/boot/container/registration/wire_up_the_reports_in_to_the.cs
@@ -2,12 +2,13 @@ using Gorilla.Commons.Infrastructure;
using Gorilla.Commons.Utility.Core;
using MoMoney.Presentation.Views.billing;
using MoMoney.Presentation.Views.reporting;
+using MoMoney.Presentation.Winforms.Views;
namespace MoMoney.boot.container.registration
{
- internal class wire_up_the_reports_in_to_the : ICommand
+ class wire_up_the_reports_in_to_the : ICommand
{
- private readonly IDependencyRegistration registry;
+ readonly IDependencyRegistration registry;
public wire_up_the_reports_in_to_the(IDependencyRegistration registry)
{
product/Boot/boot/container/registration/wire_up_the_views_in_to_the.cs
@@ -11,10 +11,11 @@ using MoMoney.Presentation.Views.Navigation;
using MoMoney.Presentation.Views.Shell;
using MoMoney.Presentation.Views.Startup;
using MoMoney.Presentation.Views.updates;
+using MoMoney.Presentation.Winforms.Views;
namespace MoMoney.boot.container.registration
{
- internal class wire_up_the_views_in_to_the : ICommand
+ class wire_up_the_views_in_to_the : ICommand
{
readonly IDependencyRegistration register;
product/Boot/boot/container/tear_down_the_container.cs
@@ -3,7 +3,7 @@ using Gorilla.Commons.Utility.Core;
namespace MoMoney.boot.container
{
- internal class tear_down_the_container : ICommand
+ class tear_down_the_container : ICommand
{
public void run()
{
product/Boot/boot/container/type_extensions.cs
@@ -6,34 +6,34 @@ using MoMoney.Domain.Core;
namespace MoMoney.boot.container
{
- public static class type_extensions
+ static public class type_extensions
{
- public static ISpecification<Type> has_no_interfaces(this Type item)
+ static public ISpecification<Type> has_no_interfaces(this Type item)
{
return new PredicateSpecification<Type>(x => x.GetInterfaces().Length == 0);
}
- public static ISpecification<Type> subclasses_form(this Type item)
+ static public ISpecification<Type> subclasses_form(this Type item)
{
return new PredicateSpecification<Type>(x => typeof (Form).IsAssignableFrom(x));
}
- public static ISpecification<Type> is_an_implementation_of_dependency_registry(this Type item)
+ static public ISpecification<Type> is_an_implementation_of_dependency_registry(this Type item)
{
return new PredicateSpecification<Type>(x => typeof (IDependencyRegistry).IsAssignableFrom(x));
}
- public static ISpecification<Type> is_an_entity(this Type item)
+ static public ISpecification<Type> is_an_entity(this Type item)
{
return new PredicateSpecification<Type>(x => typeof (IEntity).IsAssignableFrom(x));
}
- public static ISpecification<Type> is_an_interface(this Type item)
+ static public ISpecification<Type> is_an_interface(this Type item)
{
return new PredicateSpecification<Type>(x => x.IsInterface);
}
- public static ISpecification<Type> is_abstract(this Type item)
+ static public ISpecification<Type> is_abstract(this Type item)
{
return new PredicateSpecification<Type>(x => x.IsAbstract);
}
product/Boot/boot/container/wire_up_the_container.cs
@@ -7,7 +7,7 @@ using MoMoney.boot.container.registration;
namespace MoMoney.boot.container
{
- internal class wire_up_the_container : ICommand
+ class wire_up_the_container : ICommand
{
readonly IDependencyRegistration registry;
product/Boot/boot/global_error_handling.cs
@@ -9,7 +9,7 @@ using MoMoney.Presentation.Model.messages;
namespace MoMoney.boot
{
- internal class global_error_handling : ICommand
+ class global_error_handling : ICommand
{
public void run()
{
product/Boot/boot/hookup.cs
@@ -2,9 +2,9 @@ using Gorilla.Commons.Utility.Core;
namespace MoMoney.windows.ui
{
- internal class hookup
+ class hookup
{
- public static Command the<Command>() where Command : ICommand, new()
+ static public Command the<Command>() where Command : ICommand, new()
{
return new Command();
}
product/Boot/boot/start_the_application.cs
@@ -5,7 +5,7 @@ using MoMoney.Modules.Core;
namespace MoMoney.boot
{
- internal class start_the_application : ICommand
+ class start_the_application : ICommand
{
readonly IBackgroundThread thread;
readonly ILoadPresentationModulesCommand command;
product/Boot/Modules/Core/LoadPresentationModulesCommandSpecs.cs
@@ -7,7 +7,8 @@ using MoMoney.Presentation;
namespace MoMoney.Modules.Core
{
[Concern(typeof (LoadPresentationModulesCommand))]
- public class when_loading_the_application_shell : concerns_for<ILoadPresentationModulesCommand, LoadPresentationModulesCommand>
+ public class when_loading_the_application_shell :
+ concerns_for<ILoadPresentationModulesCommand, LoadPresentationModulesCommand>
{
it should_initialize_all_the_presentation_modules = () => processor.was_told_to(x => x.add(module));
product/Boot/Modules/GettingStartedModuleSpecs.cs
@@ -22,7 +22,8 @@ namespace MoMoney.Modules
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((GettingStartedModule)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();
}
product/Boot/Boot.csproj
@@ -59,10 +59,6 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\lib\app\gorilla\gorilla.commons.utility.dll</HintPath>
</Reference>
- <Reference Include="gorilla.commons.windows.forms, Version=2009.5.5.1633, Culture=neutral, PublicKeyToken=687787ccb6c36c9f, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\build\lib\app\gorilla\gorilla.commons.windows.forms.dll</HintPath>
- </Reference>
<Reference Include="gorilla.testing, Version=2009.5.5.194, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\lib\test\gorilla\gorilla.testing.dll</HintPath>
@@ -178,7 +174,7 @@
<Compile Include="Modules\Core\LoadPresentationModulesCommandSpecs.cs" />
<Compile Include="boot\hookup.cs" />
<Compile Include="Modules\Core\LoadPresentationModulesCommand.cs" />
- <Compile Include="boot\bootstrap.cs" />
+ <Compile Include="bootstrap.cs" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
product/Boot/boot/bootstrap.cs → product/Boot/bootstrap.cs
@@ -1,7 +1,8 @@
using System;
-using MoMoney.Presentation.Views.Shell;
+using MoMoney.boot;
+using MoMoney.Presentation.Winforms.Views;
-namespace MoMoney.boot
+namespace MoMoney
{
public class Bootstrap : WindowsFormsApplication<ApplicationShell>
{
product/Presentation/Core/ApplicationController.cs
@@ -1,6 +1,6 @@
using Gorilla.Commons.Utility.Core;
using Gorilla.Commons.Utility.Extensions;
-using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Views;
namespace MoMoney.Presentation.Core
{
product/Presentation/Core/ApplicationControllerSpecs.cs
@@ -1,7 +1,7 @@
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
+using MoMoney.Presentation.Views;
using MoMoney.Presentation.Views.Core;
-using MoMoney.Presentation.Views.Shell;
namespace MoMoney.Presentation.Core
{
product/Presentation/Core/ApplicationEnvironment.cs
@@ -1,7 +1,7 @@
using System.Windows.Forms;
using Gorilla.Commons.Infrastructure.Threading;
-namespace MoMoney.Infrastructure.System
+namespace MoMoney.Presentation.Core
{
public interface IApplication
{
product/Presentation/Model/Menu/File/CloseWindowCommand.cs
@@ -1,5 +1,5 @@
using Gorilla.Commons.Utility.Core;
-using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Views;
namespace MoMoney.Presentation.Model.Menu.File.Commands
{
product/Presentation/Model/Menu/File/ExitCommand.cs
@@ -1,6 +1,6 @@
using Gorilla.Commons.Infrastructure.Eventing;
using Gorilla.Commons.Utility.Core;
-using MoMoney.Infrastructure.System;
+using MoMoney.Presentation.Core;
using MoMoney.Presentation.Model.messages;
namespace MoMoney.Presentation.Model.Menu.File.Commands
product/Presentation/Model/Menu/File/ExitCommandSpecs.cs
@@ -1,7 +1,7 @@
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Infrastructure.Eventing;
using Gorilla.Commons.Testing;
-using MoMoney.Infrastructure.System;
+using MoMoney.Presentation.Core;
using MoMoney.Presentation.Model.messages;
namespace MoMoney.Presentation.Model.Menu.File.Commands
product/Presentation/Model/Menu/File/FileMenu.cs
@@ -1,8 +1,8 @@
using System.Collections.Generic;
-using Gorilla.Commons.Windows.Forms.Keyboard;
using MoMoney.Presentation.Model.Menu.File.Commands;
using MoMoney.Presentation.Model.Projects;
-using MoMoney.Presentation.Resources;
+using MoMoney.Presentation.Winforms.Keyboard;
+using MoMoney.Presentation.Winforms.Resources;
namespace MoMoney.Presentation.Model.Menu.File
{
product/Presentation/Model/Menu/Help/HelpMenu.cs
@@ -4,7 +4,7 @@ using MoMoney.Presentation.Model.Menu.Help.commands;
using MoMoney.Presentation.Presenters;
using MoMoney.Presentation.Presenters.Shell;
using MoMoney.Presentation.Presenters.updates;
-using MoMoney.Presentation.Resources;
+using MoMoney.Presentation.Winforms.Resources;
namespace MoMoney.Presentation.Model.Menu.Help
{
product/Presentation/Model/Menu/IToolbarItemBuilder.cs
@@ -1,6 +1,6 @@
using System;
using Gorilla.Commons.Utility.Core;
-using Gorilla.Commons.Windows.Forms.Resources;
+using MoMoney.Presentation.Winforms.Resources;
namespace MoMoney.Presentation.Model.Menu
{
product/Presentation/Model/Menu/MenuItem.cs
@@ -1,7 +1,7 @@
using System;
using System.Windows.Forms;
-using Gorilla.Commons.Windows.Forms.Keyboard;
-using Gorilla.Commons.Windows.Forms.Resources;
+using MoMoney.Presentation.Winforms.Keyboard;
+using MoMoney.Presentation.Winforms.Resources;
namespace MoMoney.Presentation.Model.Menu
{
product/Presentation/Model/Menu/MenuItemBuilder.cs
@@ -3,9 +3,8 @@ using Gorilla.Commons.Infrastructure.Container;
using Gorilla.Commons.Infrastructure.Eventing;
using Gorilla.Commons.Infrastructure.Threading;
using Gorilla.Commons.Utility.Core;
-using Gorilla.Commons.Windows.Forms.Keyboard;
-using Gorilla.Commons.Windows.Forms.Resources;
-using MoMoney.Presentation.Resources;
+using MoMoney.Presentation.Winforms.Keyboard;
+using MoMoney.Presentation.Winforms.Resources;
namespace MoMoney.Presentation.Model.Menu
{
product/Presentation/Model/Menu/ToolBarItemBuilder.cs
@@ -4,7 +4,7 @@ using Gorilla.Commons.Infrastructure.Container;
using Gorilla.Commons.Infrastructure.Eventing;
using Gorilla.Commons.Infrastructure.Threading;
using Gorilla.Commons.Utility.Core;
-using Gorilla.Commons.Windows.Forms.Resources;
+using MoMoney.Presentation.Winforms.Resources;
namespace MoMoney.Presentation.Model.Menu
{
product/Presentation/Presenters/AddBillingTaskPane.cs
@@ -1,5 +1,5 @@
using MoMoney.Presentation.Presenters.billing;
-using MoMoney.Presentation.Resources;
+using MoMoney.Presentation.Winforms.Resources;
using XPExplorerBar;
namespace MoMoney.Presentation.Presenters.Navigation
product/Presentation/Presenters/AddCompanyTaskPane.cs
@@ -1,4 +1,4 @@
-using MoMoney.Presentation.Resources;
+using MoMoney.Presentation.Winforms.Resources;
using XPExplorerBar;
namespace MoMoney.Presentation.Presenters.Navigation
product/Presentation/Presenters/AddIncomeTaskPane.cs
@@ -1,5 +1,5 @@
using MoMoney.Presentation.Presenters.income;
-using MoMoney.Presentation.Resources;
+using MoMoney.Presentation.Winforms.Resources;
using XPExplorerBar;
namespace MoMoney.Presentation.Presenters.Navigation
product/Presentation/Presenters/AddReportingTaskPane.cs
@@ -1,5 +1,5 @@
using MoMoney.Presentation.Presenters.reporting;
-using MoMoney.Presentation.Resources;
+using MoMoney.Presentation.Winforms.Resources;
using XPExplorerBar;
namespace MoMoney.Presentation.Presenters.Navigation
product/Presentation/Presenters/ApplicationShellPresenter.cs
@@ -2,7 +2,7 @@ using Gorilla.Commons.Infrastructure.Eventing;
using MoMoney.Presentation.Core;
using MoMoney.Presentation.Model.Menu.File.Commands;
using MoMoney.Presentation.Model.messages;
-using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Views;
namespace MoMoney.Presentation.Presenters.Shell
{
product/Presentation/Presenters/ExpandoItemBuilder.cs
@@ -2,7 +2,7 @@ using System;
using System.Drawing;
using System.Windows.Forms;
using Gorilla.Commons.Utility.Core;
-using Gorilla.Commons.Windows.Forms.Resources;
+using MoMoney.Presentation.Winforms.Resources;
using XPExplorerBar;
namespace MoMoney.Presentation.Presenters.Navigation
product/Presentation/Presenters/NotificationIconPresenter.cs
@@ -1,8 +1,8 @@
using System.Net.NetworkInformation;
using Gorilla.Commons.Infrastructure.Eventing;
using MoMoney.Presentation.Model.messages;
-using MoMoney.Presentation.Resources;
using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Winforms.Resources;
namespace MoMoney.Presentation.Presenters.Shell
{
product/Presentation/Presenters/NotificationIconPresenterSpecs.cs
@@ -1,8 +1,8 @@
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Infrastructure.Eventing;
using Gorilla.Commons.Testing;
-using MoMoney.Presentation.Resources;
using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Winforms.Resources;
namespace MoMoney.Presentation.Presenters.Shell
{
product/Presentation/Presenters/RestartCommand.cs
@@ -1,6 +1,6 @@
using Gorilla.Commons.Infrastructure.Eventing;
using Gorilla.Commons.Utility.Core;
-using MoMoney.Infrastructure.System;
+using MoMoney.Presentation.Core;
using MoMoney.Presentation.Model.messages;
namespace MoMoney.Presentation.Presenters.Commands
product/Presentation/Presenters/SplashScreenPresenter.cs
@@ -1,5 +1,6 @@
using Gorilla.Commons.Infrastructure.Threading;
using MoMoney.Presentation.Views.Startup;
+using MoMoney.Presentation.Winforms.Views;
using MoMoney.Utility.Core;
namespace MoMoney.Presentation.Presenters.Startup
product/Presentation/Presenters/StatusBarPresenter.cs
@@ -2,8 +2,8 @@ using Gorilla.Commons.Infrastructure.Eventing;
using Gorilla.Commons.Utility;
using Gorilla.Commons.Utility.Extensions;
using MoMoney.Presentation.Model.messages;
-using MoMoney.Presentation.Resources;
using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Winforms.Resources;
namespace MoMoney.Presentation.Presenters.Shell
{
product/Presentation/Presenters/StatusBarPresenterSpecs.cs
@@ -2,8 +2,8 @@ using developwithpassion.bdd.contexts;
using Gorilla.Commons.Infrastructure.Eventing;
using Gorilla.Commons.Testing;
using MoMoney.Presentation.Model.messages;
-using MoMoney.Presentation.Resources;
using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Winforms.Resources;
namespace MoMoney.Presentation.Presenters.Shell
{
product/Presentation/Presenters/ToolBarPresenter.cs
@@ -5,8 +5,8 @@ using MoMoney.Presentation.Core;
using MoMoney.Presentation.Model.Menu;
using MoMoney.Presentation.Model.Menu.File.Commands;
using MoMoney.Presentation.Model.Projects;
-using MoMoney.Presentation.Resources;
using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Winforms.Resources;
namespace MoMoney.Presentation.Presenters.Shell
{
product/Presentation/Views/ApplicationShellSpecs.cs
@@ -1,22 +0,0 @@
-using System;
-using developwithpassion.bdd.contexts;
-using Gorilla.Commons.Testing;
-using MoMoney.Presentation.Model.Menu.File.Commands;
-
-namespace MoMoney.Presentation.Views.Shell
-{
- public class behaves_like_application_shell : concerns_for<IShell, ApplicationShell>
- {
- }
-
- //public class when_the_application_shell_is_closed : behaves_like_application_shell
- //{
- // it should_execute_the_close_command = () => close_command.was_told_to(x => x.run());
-
- // context c = () => { close_command = the_dependency<ICloseCommand>(); };
-
- // because b = () => EventTrigger.trigger_event<Events.FormEvents>(x => x.OnClosed(new EventArgs()), sut);
-
- // static ICloseCommand close_command;
- //}
-}
\ No newline at end of file
product/Presentation/Views/IApplicationDockedWindow.cs
@@ -1,13 +1,11 @@
-using System.Windows.Forms;
-using Gorilla.Commons.Windows.Forms.Resources;
using MoMoney.Presentation.Views.Core;
+using MoMoney.Presentation.Winforms.Resources;
using WeifenLuo.WinFormsUI.Docking;
-namespace MoMoney.Presentation.Views.core
+namespace MoMoney.Presentation.Views
{
public interface IApplicationDockedWindow : IWindowEvents, IDockedContentView
{
- IApplicationDockedWindow create_tool_tip_for(string title, string caption, Control control);
IApplicationDockedWindow titled(string title, params object[] arguments);
IApplicationDockedWindow icon(ApplicationIcon icon);
IApplicationDockedWindow cannot_be_closed();
product/Presentation/Views/INotificationIconView.cs
@@ -1,5 +1,5 @@
using System;
-using Gorilla.Commons.Windows.Forms.Resources;
+using MoMoney.Presentation.Winforms.Resources;
namespace MoMoney.Presentation.Views.Shell
{
product/Presentation/Views/IShell.cs
@@ -2,8 +2,9 @@ using System.ComponentModel;
using System.Windows.Forms;
using MoMoney.Presentation.Presenters.Shell;
using MoMoney.Presentation.Views.Core;
+using MoMoney.Presentation.Views.Shell;
-namespace MoMoney.Presentation.Views.Shell
+namespace MoMoney.Presentation.Views
{
public interface IShell : IWin32Window, ISynchronizeInvoke, IContainerControl, IBindableComponent, IDropTarget,
IRegionManager
product/Presentation/Views/IStatusBarView.cs
@@ -1,4 +1,4 @@
-using Gorilla.Commons.Windows.Forms.Resources;
+using MoMoney.Presentation.Winforms.Resources;
namespace MoMoney.Presentation.Views.Shell
{
product/Presentation/Views/IWindowEvents.cs
@@ -1,7 +1,8 @@
using System;
using System.ComponentModel;
+using MoMoney.Presentation.Views.Core;
-namespace MoMoney.Presentation.Views.Core
+namespace MoMoney.Presentation.Views
{
public interface IWindowEvents
{
product/Presentation/Winforms/Databinding/BindingSelector.cs
@@ -1,6 +1,5 @@
using System;
using System.Linq.Expressions;
-using Gorilla.Commons.Windows.Forms.Databinding;
namespace MoMoney.Presentation.Winforms.Databinding
{
product/Presentation/Winforms/Databinding/BindingSelectorSpecs.cs
@@ -2,9 +2,8 @@ using System;
using System.Linq.Expressions;
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
-using MoMoney.Presentation.Winforms.Databinding;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
public class BindingSelectorSpecs
{
product/Presentation/Winforms/Databinding/ComboBoxDataBindingSpecs.cs
@@ -2,7 +2,7 @@ using System.Windows.Forms;
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
[Concern(typeof (Create))]
public class when_binding_a_property_from_an_object_to_a_combo_box : concerns
product/Presentation/Winforms/Databinding/ComboBoxPropertyBinding.cs
@@ -1,7 +1,7 @@
using System.Windows.Forms;
using Gorilla.Commons.Utility.Extensions;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
public class ComboBoxPropertyBinding<TypeToBindTo, PropertyType> : IPropertyBinding<PropertyType>
{
product/Presentation/Winforms/Databinding/ControlBindingExtensions.cs
@@ -1,7 +1,7 @@
using System;
using System.Windows.Forms;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
public static class ControlBindingExtensions
{
product/Presentation/Winforms/Databinding/Create.cs
@@ -1,9 +1,8 @@
using System;
using System.Linq.Expressions;
using System.Windows.Forms;
-using MoMoney.Presentation.Winforms.Databinding;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
public static class Create
{
product/Presentation/Winforms/Databinding/CreateSpecs.cs
@@ -2,7 +2,7 @@ using System.Windows.Forms;
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
public class CreateSpecs
{
product/Presentation/Winforms/Databinding/DateTimePickerPropertyBinding.cs
@@ -1,7 +1,7 @@
using System;
using System.Windows.Forms;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
public class DateTimePickerPropertyBinding<TypeToBindTo> : IPropertyBinding<DateTime>
{
product/Presentation/Winforms/Databinding/DateTimePropertyBindingSpecs.cs
@@ -3,7 +3,7 @@ using System.Windows.Forms;
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
[Concern(typeof (Create))]
public class when_a_new_date_is_selected_by_a_date_time_picker_that_is_bound_to_a_property : concerns
product/Presentation/Winforms/Databinding/IPropertyBinding.cs
@@ -1,4 +1,4 @@
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
public interface IPropertyBinding<PropertyType>
{
product/Presentation/Winforms/Databinding/ListboxExtensions.cs
@@ -2,7 +2,7 @@ using System.Collections.Generic;
using System.Windows.Forms;
using Gorilla.Commons.Utility.Extensions;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
static public class ListboxExtensions
{
product/Presentation/Winforms/Databinding/PropertyBinder.cs
@@ -1,6 +1,6 @@
using System.Reflection;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
public interface IPropertyBinder<TypeToBindTo, PropertyType>
{
product/Presentation/Winforms/Databinding/PropertyBinderSpecs.cs
@@ -2,7 +2,7 @@ using System.Reflection;
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
[Concern(typeof (PropertyBinder<,>))]
public abstract class behaves_like_a_property_binder :
product/Presentation/Winforms/Databinding/PropertyInspector.cs
@@ -3,7 +3,7 @@ using System.Linq.Expressions;
using System.Reflection;
using Gorilla.Commons.Utility.Extensions;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
public interface IPropertyInspector<TypeToBindTo, TypeOfProperty>
{
product/Presentation/Winforms/Databinding/PropertyInspectorFactory.cs
@@ -1,4 +1,4 @@
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
public interface IPropertyInspectorFactory
{
product/Presentation/Winforms/Databinding/PropertyInspectorSpecs.cs
@@ -2,7 +2,7 @@ using System.Reflection;
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
[Concern(typeof (PropertyInspector<,>))]
public class when_parsing_a_valie_expression_for_the_information_on_the_property :
product/Presentation/Winforms/Databinding/TextBoxDataBindingSpecs.cs
@@ -2,7 +2,7 @@ using System.Windows.Forms;
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
[Concern(typeof (Create))]
public class when_binding_a_property_on_an_object_to_a_textbox : concerns
product/Presentation/Winforms/Databinding/TextBoxExtensions.cs
@@ -1,7 +1,7 @@
using System.Windows.Forms;
-using Gorilla.Commons.Windows.Forms.Helpers;
+using MoMoney.Presentation.Winforms.Helpers;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
static public class TextBoxExtensions
{
product/Presentation/Winforms/Databinding/TextPropertyBinding.cs
@@ -1,7 +1,7 @@
using System.Windows.Forms;
using Gorilla.Commons.Utility.Extensions;
-namespace Gorilla.Commons.Windows.Forms.Databinding
+namespace MoMoney.Presentation.Winforms.Databinding
{
public class TextPropertyBinding<TypeToBindTo, PropertyType> : IPropertyBinding<PropertyType>
{
product/Presentation/Winforms/Helpers/BindableListBox.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using Gorilla.Commons.Utility.Extensions;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public class BindableListBox<TItemToBindTo> : IBindableList<TItemToBindTo>
{
product/Presentation/Winforms/Helpers/BindableListBoxSpecs.cs
@@ -2,7 +2,7 @@ using System.Collections.Generic;
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public class BindableListBoxSpecs
{
product/Presentation/Winforms/Helpers/BindableListExtensions.cs
@@ -1,6 +1,6 @@
using System.Windows.Forms;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
static public class BindableListExtensions
{
product/Presentation/Winforms/Helpers/BindableListFactory.cs
@@ -1,4 +1,4 @@
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
static public class BindableListFactory
{
product/Presentation/Winforms/Helpers/BindableTextBox.cs
@@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using Gorilla.Commons.Utility.Extensions;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public interface IBindableTextBox<T>
{
product/Presentation/Winforms/Helpers/BindableTextBoxExtensions.cs
@@ -2,7 +2,7 @@ using System;
using System.Linq.Expressions;
using Gorilla.Commons.Utility.Extensions;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
static public class BindableTextBoxExtensions
{
product/Presentation/Winforms/Helpers/BindableTextBoxExtensionsSpecs.cs
@@ -3,7 +3,7 @@ using System.Windows.Forms;
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public class BindableTextBoxExtensionsSpecs
{
@@ -12,7 +12,7 @@ namespace Gorilla.Commons.Windows.Forms.Helpers
[Concern(typeof (BindableTextBoxExtensions))]
public class when_binding_a_text_control_to_a_command : concerns
{
- it should_run_each_command_when_the_text_changes_in_the_text_control = () => command.was_told_to(x => x.run(result));
+ it should_run_each_command_when_the_text_changes_in_the_text_control = () => command.was_told_to<ITextBoxCommand<string>>(x => x.run(result));
context c = () =>
{
product/Presentation/Winforms/Helpers/BindableTextBoxSpecs.cs
@@ -3,7 +3,7 @@ using Gorilla.Commons.Testing;
using Gorilla.Commons.Utility.Core;
using Gorilla.Commons.Utility.Extensions;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public class BindableTextBoxSpecs
{
product/Presentation/Winforms/Helpers/BitmapRegion.cs
@@ -2,7 +2,7 @@ using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public static class BitmapRegion
{
product/Presentation/Winforms/Helpers/ButtonExtensions.cs
@@ -4,7 +4,7 @@ using System.Windows.Forms;
using Gorilla.Commons.Infrastructure.Container;
using Gorilla.Commons.Utility.Core;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
static public class ButtonExtensions
{
product/Presentation/Winforms/Helpers/ComboBoxListControl.cs
@@ -1,6 +1,6 @@
using System.Windows.Forms;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public class ComboBoxListControl<TItemToStore> : IListControl<TItemToStore>
{
product/Presentation/Winforms/Helpers/ControlAdapter.cs
@@ -1,7 +1,7 @@
using System;
using System.Windows.Forms;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public class ControlAdapter : Control
{
product/Presentation/Winforms/Helpers/ControlExtensions.cs
@@ -1,7 +1,7 @@
using System;
using System.Windows.Forms;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
static public class ControlExtensions
{
product/Presentation/Winforms/Helpers/Events.cs
@@ -2,7 +2,7 @@ using System;
using System.ComponentModel;
using System.Windows.Forms;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public class Events
{
product/Presentation/Winforms/Helpers/EventTrigger.cs
@@ -5,7 +5,7 @@ using System.Linq.Expressions;
using System.Reflection;
using Gorilla.Commons.Utility.Extensions;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public static class EventTrigger
{
product/Presentation/Winforms/Helpers/EventTriggerExtensions.cs
@@ -1,7 +1,7 @@
using System;
using System.Linq.Expressions;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public static class EventTriggerExtensions
{
product/Presentation/Winforms/Helpers/EventTriggerSpecs.cs
@@ -3,7 +3,7 @@ using System.Windows.Forms;
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
[Concern(typeof (EventTrigger))]
public class when_invoking_a_call_on_a_target_via_reflection : concerns
@@ -11,8 +11,8 @@ namespace Gorilla.Commons.Windows.Forms.Helpers
it should_correctly_call_that_method =
() =>
{
- control.called_on_key_press.should_be_true();
- control.called_on_enter.should_be_false();
+ Assertions.should_be_true(control.called_on_key_press);
+ Assertions.should_be_false(control.called_on_enter);
};
context c = () => { control = new TestControl(); };
product/Presentation/Winforms/Helpers/IBindableList.cs
@@ -1,6 +1,6 @@
using System.Collections.Generic;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public interface IBindableList<ItemToBindTo>
{
product/Presentation/Winforms/Helpers/IEventTarget.cs
@@ -1,4 +1,4 @@
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public interface IEventTarget
{
product/Presentation/Winforms/Helpers/IListControl.cs
@@ -1,4 +1,4 @@
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public interface IListControl<ItemToStore>
{
product/Presentation/Winforms/Helpers/ITextBoxCommand.cs
@@ -1,6 +1,6 @@
using Gorilla.Commons.Utility.Core;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public interface ITextBoxCommand<T> : IParameterizedCommand<IBindableTextBox<T>>
{
product/Presentation/Winforms/Helpers/ITextControl.cs
@@ -1,6 +1,6 @@
using System;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public interface ITextControl<ItemToStore>
{
product/Presentation/Winforms/Helpers/ListBoxListControl.cs
@@ -1,6 +1,6 @@
using System.Windows.Forms;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public class ListBoxListControl<TItemToStore> : IListControl<TItemToStore>
{
product/Presentation/Winforms/Helpers/RebindTextBoxCommand.cs
@@ -1,7 +1,7 @@
using System;
using System.Linq.Expressions;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public class RebindTextBoxCommand<T> : ITextBoxCommand<T>
{
product/Presentation/Winforms/Helpers/RebindTextBoxCommandSpecs.cs
@@ -3,7 +3,7 @@ using System.Linq.Expressions;
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public class RebindTextBoxCommandSpecs
{
product/Presentation/Winforms/Helpers/SuspendLayout.cs
@@ -1,7 +1,7 @@
using System;
using System.Windows.Forms;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public class SuspendLayout : IDisposable
{
product/Presentation/Winforms/Helpers/TextControl.cs
@@ -1,7 +1,7 @@
using System;
using System.Windows.Forms;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public class TextControl<ItemToStore> : ITextControl<ItemToStore>
{
product/Presentation/Winforms/Helpers/TextControlSpecs.cs
@@ -4,7 +4,7 @@ using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
using Gorilla.Commons.Utility.Core;
-namespace Gorilla.Commons.Windows.Forms.Helpers
+namespace MoMoney.Presentation.Winforms.Helpers
{
public class TextControlSpecs
{
product/Presentation/Winforms/Helpers/ValidateTextBoxCommandSpecs.cs
@@ -1,7 +0,0 @@
-namespace Gorilla.Commons.Windows.Forms.Helpers
-{
- public class ValidateTextBoxCommandSpecs
- {
-
- }
-}
\ No newline at end of file
product/Presentation/Winforms/Keyboard/ShortcutKey.cs
@@ -1,6 +1,6 @@
using System.Windows.Forms;
-namespace Gorilla.Commons.Windows.Forms.Keyboard
+namespace MoMoney.Presentation.Winforms.Keyboard
{
public class ShortcutKey
{
product/Presentation/Winforms/Keyboard/ShortcutKeys.cs
@@ -1,6 +1,6 @@
using System.Windows.Forms;
-namespace Gorilla.Commons.Windows.Forms.Keyboard
+namespace MoMoney.Presentation.Winforms.Keyboard
{
static public class ShortcutKeys
{
product/Presentation/Winforms/Krypton/BindableListExtensions.cs
@@ -1,7 +1,7 @@
using ComponentFactory.Krypton.Toolkit;
-using Gorilla.Commons.Windows.Forms.Helpers;
+using MoMoney.Presentation.Winforms.Helpers;
-namespace Gorilla.Commons.Windows.Forms.Krypton
+namespace MoMoney.Presentation.Winforms.Krypton
{
static public class BindableListExtensions
{
product/Presentation/Winforms/Krypton/KryptonComboBoxListControl.cs
@@ -1,7 +1,7 @@
using ComponentFactory.Krypton.Toolkit;
-using Gorilla.Commons.Windows.Forms.Helpers;
+using MoMoney.Presentation.Winforms.Helpers;
-namespace Gorilla.Commons.Windows.Forms.Krypton
+namespace MoMoney.Presentation.Winforms.Krypton
{
public class KryptonComboBoxListControl<TItemToStore> : IListControl<TItemToStore>
{
product/Presentation/Winforms/Krypton/KryptonListBoxListControl.cs
@@ -1,7 +1,7 @@
using ComponentFactory.Krypton.Toolkit;
-using Gorilla.Commons.Windows.Forms.Helpers;
+using MoMoney.Presentation.Winforms.Helpers;
-namespace Gorilla.Commons.Windows.Forms.Krypton
+namespace MoMoney.Presentation.Winforms.Krypton
{
public class KryptonListBoxListControl<TItemToStore> : IListControl<TItemToStore>
{
product/Presentation/Winforms/Krypton/KryptonTextControl.cs
@@ -1,8 +1,8 @@
using System;
using ComponentFactory.Krypton.Toolkit;
-using Gorilla.Commons.Windows.Forms.Helpers;
+using MoMoney.Presentation.Winforms.Helpers;
-namespace Gorilla.Commons.Windows.Forms.Krypton
+namespace MoMoney.Presentation.Winforms.Krypton
{
public class KryptonTextControl<T> : ITextControl<T>
{
product/Presentation/Winforms/Krypton/ListboxExtensions.cs
@@ -2,7 +2,7 @@ using System.Collections.Generic;
using ComponentFactory.Krypton.Toolkit;
using Gorilla.Commons.Utility.Extensions;
-namespace Gorilla.Commons.Windows.Forms.Krypton
+namespace MoMoney.Presentation.Winforms.Krypton
{
static public class ListboxExtensions
{
product/Presentation/Winforms/Krypton/TextBoxExtensions.cs
@@ -1,7 +1,7 @@
using ComponentFactory.Krypton.Toolkit;
-using Gorilla.Commons.Windows.Forms.Helpers;
+using MoMoney.Presentation.Winforms.Helpers;
-namespace Gorilla.Commons.Windows.Forms.Krypton
+namespace MoMoney.Presentation.Winforms.Krypton
{
static public class TextBoxExtensions
{
product/Presentation/Winforms/Resources/ApplicationIcon.cs
@@ -3,7 +3,7 @@ using System.Drawing;
using System.IO;
using Gorilla.Commons.Infrastructure.Reflection;
-namespace Gorilla.Commons.Windows.Forms.Resources
+namespace MoMoney.Presentation.Winforms.Resources
{
public class ApplicationIcon : IDisposable
{
product/Presentation/Winforms/Resources/ApplicationIcons.cs
@@ -1,8 +1,7 @@
using System.Collections.Generic;
using Gorilla.Commons.Utility.Extensions;
-using Gorilla.Commons.Windows.Forms.Resources;
-namespace MoMoney.Presentation.Resources
+namespace MoMoney.Presentation.Winforms.Resources
{
static public class ApplicationIcons
{
product/Presentation/Winforms/Resources/ApplicationImage.cs
@@ -3,7 +3,7 @@ using System.Drawing;
using System.IO;
using Gorilla.Commons.Infrastructure.Reflection;
-namespace Gorilla.Commons.Windows.Forms.Resources
+namespace MoMoney.Presentation.Winforms.Resources
{
public class ApplicationImage : IDisposable
{
product/Presentation/Winforms/Resources/ApplicationImages.cs
@@ -1,6 +1,4 @@
-using Gorilla.Commons.Windows.Forms.Resources;
-
-namespace MoMoney.Presentation.Resources
+namespace MoMoney.Presentation.Winforms.Resources
{
public static class ApplicationImages
{
product/Presentation/Winforms/Resources/HybridIcon.cs
@@ -1,7 +1,7 @@
using System;
using System.Drawing;
-namespace Gorilla.Commons.Windows.Forms.Resources
+namespace MoMoney.Presentation.Winforms.Resources
{
public class HybridIcon : ApplicationIcon
{
product/Presentation/Winforms/Views/AboutTheApplicationView.cs
@@ -1,10 +1,10 @@
using System;
using System.Reflection;
using Gorilla.Commons.Utility.Extensions;
-using MoMoney.Presentation.Resources;
-using MoMoney.Presentation.Views.core;
+using MoMoney.Presentation.Views.Menu;
+using MoMoney.Presentation.Winforms.Resources;
-namespace MoMoney.Presentation.Views.Menu
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class AboutTheApplicationView : ApplicationDockedWindow, IAboutApplicationView
{
product/Presentation/Winforms/Views/AboutTheApplicationView.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.Menu
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class AboutTheApplicationView
{
product/Presentation/Winforms/Views/AddBillPaymentView.cs
@@ -1,14 +1,14 @@
using System;
using System.Collections.Generic;
using Gorilla.Commons.Utility.Extensions;
-using Gorilla.Commons.Windows.Forms.Helpers;
-using Gorilla.Commons.Windows.Forms.Krypton;
using MoMoney.DTO;
using MoMoney.Presentation.Presenters.billing;
-using MoMoney.Presentation.Views.core;
+using MoMoney.Presentation.Views.billing;
using MoMoney.Presentation.Views.Core;
+using MoMoney.Presentation.Winforms.Helpers;
+using MoMoney.Presentation.Winforms.Krypton;
-namespace MoMoney.Presentation.Views.billing
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class AddBillPaymentView : ApplicationDockedWindow, IAddBillPaymentView
{
product/Presentation/Winforms/Views/AddBillPaymentView.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.billing
+namespace MoMoney.Presentation.Winforms.Views
{
partial class AddBillPaymentView
{
product/Presentation/Winforms/Views/AddCompanyView.cs
@@ -3,14 +3,14 @@ using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Gorilla.Commons.Utility.Extensions;
-using Gorilla.Commons.Windows.Forms.Databinding;
using MoMoney.DTO;
using MoMoney.Presentation.Presenters;
-using MoMoney.Presentation.Resources;
-using MoMoney.Presentation.Views.core;
+using MoMoney.Presentation.Views;
using MoMoney.Presentation.Views.Core;
+using MoMoney.Presentation.Winforms.Databinding;
+using MoMoney.Presentation.Winforms.Resources;
-namespace MoMoney.Presentation.Views
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class AddCompanyView : ApplicationDockedWindow, IAddCompanyView
{
@@ -34,7 +34,7 @@ namespace MoMoney.Presentation.Views
public void attach_to(IAddCompanyPresenter presenter)
{
- ux_company_name.bind_to(dto, x => x.company_name);
+ Create.bind_to(ux_company_name, dto, x => x.company_name);
submit_button = x => presenter.submit(dto);
}
product/Presentation/Winforms/Views/AddCompanyView.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views
+namespace MoMoney.Presentation.Winforms.Views
{
partial class AddCompanyView
{
product/Presentation/Winforms/Views/AddNewIncomeView.cs
@@ -1,14 +1,14 @@
using System;
using System.Collections.Generic;
using Gorilla.Commons.Utility.Extensions;
-using Gorilla.Commons.Windows.Forms.Helpers;
-using Gorilla.Commons.Windows.Forms.Krypton;
using MoMoney.DTO;
using MoMoney.Presentation.Presenters.income;
-using MoMoney.Presentation.Views.core;
using MoMoney.Presentation.Views.Core;
+using MoMoney.Presentation.Views.income;
+using MoMoney.Presentation.Winforms.Helpers;
+using MoMoney.Presentation.Winforms.Krypton;
-namespace MoMoney.Presentation.Views.income
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class AddNewIncomeView : ApplicationDockedWindow, IAddNewIncomeView
{
product/Presentation/Winforms/Views/AddNewIncomeView.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.income
+namespace MoMoney.Presentation.Winforms.Views
{
partial class AddNewIncomeView
{
product/Presentation/Winforms/Views/ApplicationDockedWindow.cs
@@ -3,13 +3,13 @@ using System.ComponentModel;
using System.Linq;
using System.Windows.Forms;
using Gorilla.Commons.Utility.Extensions;
-using Gorilla.Commons.Windows.Forms.Helpers;
-using Gorilla.Commons.Windows.Forms.Resources;
-using MoMoney.Presentation.Resources;
+using MoMoney.Presentation.Views;
using MoMoney.Presentation.Views.Core;
+using MoMoney.Presentation.Winforms.Helpers;
+using MoMoney.Presentation.Winforms.Resources;
using WeifenLuo.WinFormsUI.Docking;
-namespace MoMoney.Presentation.Views.core
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class ApplicationDockedWindow : DockContent, IApplicationDockedWindow
{
product/Presentation/Winforms/Views/ApplicationDockedWindow.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.core
+namespace MoMoney.Presentation.Winforms.Views
{
partial class ApplicationDockedWindow
{
product/Presentation/Winforms/Views/ApplicationShell.cs
@@ -4,12 +4,12 @@ using System.ComponentModel;
using System.ComponentModel.Composition;
using System.Windows.Forms;
using Gorilla.Commons.Utility.Extensions;
-using Gorilla.Commons.Windows.Forms.Helpers;
using MoMoney.Presentation.Presenters.Shell;
-using MoMoney.Presentation.Views.core;
+using MoMoney.Presentation.Views;
using MoMoney.Presentation.Views.Core;
+using MoMoney.Presentation.Winforms.Helpers;
-namespace MoMoney.Presentation.Views.Shell
+namespace MoMoney.Presentation.Winforms.Views
{
[Export(typeof (IShell))]
public partial class ApplicationShell : ApplicationWindow, IShell
product/Presentation/Winforms/Views/ApplicationShell.Designer.cs
@@ -1,4 +1,5 @@
-namespace MoMoney.Presentation.Views.Shell {
+namespace MoMoney.Presentation.Winforms.Views
+{
partial class ApplicationShell
{
/// <summary>
@@ -65,8 +66,8 @@ namespace MoMoney.Presentation.Views.Shell {
// ux_status_bar
//
this.ux_status_bar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.status_bar_label,
- this.status_bar_progress_bar});
+ this.status_bar_label,
+ this.status_bar_progress_bar});
this.ux_status_bar.Location = new System.Drawing.Point(0, 485);
this.ux_status_bar.Name = "ux_status_bar";
this.ux_status_bar.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
product/Presentation/Winforms/Views/ApplicationShellSpecs.cs
@@ -0,0 +1,26 @@
+using System;
+using developwithpassion.bdd.contexts;
+using Gorilla.Commons.Testing;
+using MoMoney.Presentation.Presenters.Shell;
+using MoMoney.Presentation.Views;
+using MoMoney.Presentation.Winforms.Helpers;
+
+namespace MoMoney.Presentation.Winforms.Views
+{
+ public class behaves_like_application_shell : concerns_for<IShell, ApplicationShell>
+ {
+ }
+
+ public class when_the_application_shell_is_closed : behaves_like_application_shell
+ {
+ it should_execute_the_close_command = () => presenter.was_told_to(x => x.shut_down());
+
+ context c = () => { presenter = an<IApplicationShellPresenter>(); };
+
+ after_the_sut_has_been_created a = () => { sut.attach_to(presenter); };
+
+ because b = () => EventTrigger.trigger_event<Events.FormEvents>(x => x.OnClosed(new EventArgs()), sut);
+
+ static IApplicationShellPresenter presenter;
+ }
+}
\ No newline at end of file
product/Presentation/Winforms/Views/ApplicationWindow.cs
@@ -1,11 +1,12 @@
using System;
using System.ComponentModel;
using System.Windows.Forms;
-using Gorilla.Commons.Windows.Forms.Helpers;
-using MoMoney.Presentation.Resources;
+using MoMoney.Presentation.Views.core;
using MoMoney.Presentation.Views.Core;
+using MoMoney.Presentation.Winforms.Helpers;
+using MoMoney.Presentation.Winforms.Resources;
-namespace MoMoney.Presentation.Views.core
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class ApplicationWindow : Form, IApplicationWindow
{
product/Presentation/Winforms/Views/ApplicationWindow.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.core
+namespace MoMoney.Presentation.Winforms.Views
{
partial class ApplicationWindow
{
product/Presentation/Winforms/Views/CheckForUpdatesView.cs
@@ -4,12 +4,12 @@ using System.Windows.Forms;
using Gorilla.Commons.Utility;
using MoMoney.DTO;
using MoMoney.Presentation.Presenters.updates;
-using MoMoney.Presentation.Resources;
-using MoMoney.Presentation.Views.core;
+using MoMoney.Presentation.Views;
using MoMoney.Presentation.Views.Core;
-using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Views.updates;
+using MoMoney.Presentation.Winforms.Resources;
-namespace MoMoney.Presentation.Views.updates
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class CheckForUpdatesView : ApplicationWindow, ICheckForUpdatesView
{
product/Presentation/Winforms/Views/CheckForUpdatesView.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.updates
+namespace MoMoney.Presentation.Winforms.Views
{
partial class CheckForUpdatesView
{
@@ -49,7 +49,7 @@ namespace MoMoney.Presentation.Views.updates
this.label3.Size = new System.Drawing.Size(364, 2);
this.label3.TabIndex = 15;
this.label3.Text = " " +
- " ";
+ " ";
//
// label2
//
product/Presentation/Winforms/Views/LogFileView.cs
@@ -1,6 +1,6 @@
-using MoMoney.Presentation.Views.core;
+using MoMoney.Presentation.Views.Shell;
-namespace MoMoney.Presentation.Views.Shell
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class LogFileView : ApplicationDockedWindow, ILogFileView
{
product/Presentation/Winforms/Views/LogFileView.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.Shell
+namespace MoMoney.Presentation.Winforms.Views
{
partial class LogFileView
{
product/Presentation/Winforms/Views/MainMenuView.cs
@@ -1,10 +1,10 @@
-using Gorilla.Commons.Windows.Forms.Helpers;
using MoMoney.Presentation.Presenters.Navigation;
-using MoMoney.Presentation.Resources;
-using MoMoney.Presentation.Views.core;
+using MoMoney.Presentation.Views.Navigation;
+using MoMoney.Presentation.Winforms.Helpers;
+using MoMoney.Presentation.Winforms.Resources;
using WeifenLuo.WinFormsUI.Docking;
-namespace MoMoney.Presentation.Views.Navigation
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class MainMenuView : ApplicationDockedWindow, IMainMenuView
{
product/Presentation/Winforms/Views/MainMenuView.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.Navigation
+namespace MoMoney.Presentation.Winforms.Views
{
partial class MainMenuView
{
product/Presentation/Winforms/Views/NotificationIconView.cs
@@ -1,14 +1,14 @@
using System.Windows.Forms;
using Gorilla.Commons.Utility.Extensions;
-using Gorilla.Commons.Windows.Forms.Resources;
using MoMoney.Presentation.Model.Menu;
using MoMoney.Presentation.Model.Menu.File;
using MoMoney.Presentation.Model.Menu.Help;
using MoMoney.Presentation.Model.Menu.window;
using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Winforms.Resources;
using MenuItem=System.Windows.Forms.MenuItem;
-namespace MoMoney.Presentation.Views
+namespace MoMoney.Presentation.Winforms.Views
{
public class NotificationIconView : INotificationIconView
{
product/Presentation/Winforms/Views/ReportViewer.cs
@@ -2,9 +2,9 @@ using System;
using DataDynamics.ActiveReports;
using Gorilla.Commons.Utility.Extensions;
using MoMoney.Presentation.Model.reporting;
-using MoMoney.Presentation.Views.core;
+using MoMoney.Presentation.Views.reporting;
-namespace MoMoney.Presentation.Views.reporting
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class ReportViewer : ApplicationDockedWindow, IReportViewer
{
product/Presentation/Winforms/Views/ReportViewer.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.reporting
+namespace MoMoney.Presentation.Winforms.Views
{
partial class ReportViewer
{
product/Presentation/Winforms/Views/SaveChangesView.cs
@@ -2,11 +2,11 @@ using System;
using System.ComponentModel;
using System.Windows.Forms;
using MoMoney.Presentation.Model.Menu.File.Commands;
-using MoMoney.Presentation.Resources;
-using MoMoney.Presentation.Views.core;
using MoMoney.Presentation.Views.Core;
+using MoMoney.Presentation.Views.dialogs;
+using MoMoney.Presentation.Winforms.Resources;
-namespace MoMoney.Presentation.Views.dialogs
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class SaveChangesView : ApplicationWindow, ISaveChangesView
{
product/Presentation/Winforms/Views/SaveChangesView.Designer.cs
@@ -1,6 +1,6 @@
-namespace MoMoney.Presentation.Views.dialogs
+namespace MoMoney.Presentation.Winforms.Views
{
-public partial class SaveChangesView
+ public partial class SaveChangesView
{
/// <summary>
/// Required designer variable.
@@ -134,7 +134,7 @@ public partial class SaveChangesView
#endregion
- public System.Windows.Forms.Button save_button;
+ public System.Windows.Forms.Button save_button;
public System.Windows.Forms.Button do_not_save_button;
public System.Windows.Forms.Button cancel_button;
public System.Windows.Forms.PictureBox ux_image;
product/Presentation/Winforms/Views/SaveChangesViewSpecs.cs
@@ -1,10 +1,10 @@
using System;
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
-using Gorilla.Commons.Windows.Forms.Helpers;
using MoMoney.Presentation.Model.Menu.File.Commands;
+using MoMoney.Presentation.Winforms.Helpers;
-namespace MoMoney.Presentation.Views.dialogs
+namespace MoMoney.Presentation.Winforms.Views
{
[Concern(typeof(SaveChangesView))]
[Integration]
product/Presentation/Winforms/Views/SelectFileToOpenDialog.cs
@@ -1,7 +1,8 @@
using System.Windows.Forms;
using Gorilla.Commons.Infrastructure.FileSystem;
+using MoMoney.Presentation.Views.dialogs;
-namespace MoMoney.Presentation.Views.dialogs
+namespace MoMoney.Presentation.Winforms.Views
{
public class SelectFileToOpenDialog : ISelectFileToOpenDialog
{
product/Presentation/Winforms/Views/SelectFileToSaveToDialog.cs
@@ -1,7 +1,8 @@
using System.Windows.Forms;
using Gorilla.Commons.Infrastructure.FileSystem;
+using MoMoney.Presentation.Views.dialogs;
-namespace MoMoney.Presentation.Views.dialogs
+namespace MoMoney.Presentation.Winforms.Views
{
public class SelectFileToSaveToDialog : ISelectFileToSaveToDialog
{
product/Presentation/Winforms/Views/SplashScreenView.cs
@@ -1,9 +1,9 @@
using System;
using System.Windows.Forms;
-using MoMoney.Presentation.Resources;
-using MoMoney.Presentation.Views.core;
+using MoMoney.Presentation.Views.Startup;
+using MoMoney.Presentation.Winforms.Resources;
-namespace MoMoney.Presentation.Views.Startup
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class SplashScreenView : ApplicationWindow, ISplashScreenView
{
product/Presentation/Winforms/Views/SplashScreenView.Designer.cs
@@ -1,4 +1,5 @@
-namespace MoMoney.Presentation.Views.Startup {
+namespace MoMoney.Presentation.Winforms.Views
+{
partial class SplashScreenView
{
/// <summary>
product/Presentation/Winforms/Views/StatusBarView.cs
@@ -1,7 +1,8 @@
using System.Windows.Forms;
-using Gorilla.Commons.Windows.Forms.Resources;
+using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Winforms.Resources;
-namespace MoMoney.Presentation.Views.Shell
+namespace MoMoney.Presentation.Winforms.Views
{
public class StatusBarView : IStatusBarView
{
product/Presentation/Winforms/Views/TaskTrayMessage.cs
@@ -1,6 +1,7 @@
using Gorilla.Commons.Utility.Extensions;
+using MoMoney.Presentation.Views.Shell;
-namespace MoMoney.Presentation.Views.Shell
+namespace MoMoney.Presentation.Winforms.Views
{
public class TaskTrayMessage : ITaskTrayMessageView
{
product/Presentation/Winforms/Views/TitleBar.cs
@@ -1,7 +1,8 @@
using System.Windows.Forms;
+using MoMoney.Presentation.Views;
using MoMoney.Presentation.Views.Shell;
-namespace MoMoney.Presentation.Views
+namespace MoMoney.Presentation.Winforms.Views
{
public class TitleBar : ITitleBar
{
product/Presentation/Winforms/Views/UnhandledErrorView.cs
@@ -1,11 +1,11 @@
using System;
using System.Windows.Forms;
using MoMoney.Presentation.Presenters.Shell;
-using MoMoney.Presentation.Resources;
-using MoMoney.Presentation.Views.core;
using MoMoney.Presentation.Views.Core;
+using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Winforms.Resources;
-namespace MoMoney.Presentation.Views.Shell
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class UnhandledErrorView : ApplicationWindow, IUnhandledErrorView
{
product/Presentation/Winforms/Views/UnhandledErrorView.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.Shell
+namespace MoMoney.Presentation.Winforms.Views
{
partial class UnhandledErrorView
{
product/Presentation/Winforms/Views/ViewAllBills.cs
@@ -2,9 +2,9 @@ using System.Collections.Generic;
using System.Linq;
using MoMoney.DTO;
using MoMoney.Presentation.Presenters.billing;
-using MoMoney.Presentation.Views.core;
+using MoMoney.Presentation.Views.billing;
-namespace MoMoney.Presentation.Views.billing
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class ViewAllBills : ApplicationDockedWindow, IViewAllBills
{
product/Presentation/Winforms/Views/ViewAllBills.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.billing
+namespace MoMoney.Presentation.Winforms.Views
{
partial class ViewAllBills
{
product/Presentation/Winforms/Views/ViewAllBillsReport.cs
@@ -4,8 +4,9 @@ using DataDynamics.ActiveReports;
using Gorilla.Commons.Utility.Extensions;
using MoMoney.DTO;
using MoMoney.Presentation.Model.reporting;
+using MoMoney.Presentation.Views.billing;
-namespace MoMoney.Presentation.Views.billing
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class ViewAllBillsReport : ActiveReport, IViewAllBillsReport
{
product/Presentation/Winforms/Views/ViewAllBillsReport.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.billing
+namespace MoMoney.Presentation.Winforms.Views
{
/// <summary>
/// Summary description for view_all_bills.
product/Presentation/Winforms/Views/ViewAllIncome.cs
@@ -2,9 +2,9 @@ using System.Collections.Generic;
using Gorilla.Commons.Utility.Extensions;
using MoMoney.DTO;
using MoMoney.Presentation.Presenters.income;
-using MoMoney.Presentation.Views.core;
+using MoMoney.Presentation.Views.income;
-namespace MoMoney.Presentation.Views.income
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class ViewAllIncome : ApplicationDockedWindow, IViewIncomeHistory
{
product/Presentation/Winforms/Views/ViewAllIncome.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.income
+namespace MoMoney.Presentation.Winforms.Views
{
partial class ViewAllIncome
{
product/Presentation/Winforms/Views/WelcomeScreen.cs
@@ -1,10 +1,10 @@
-using Gorilla.Commons.Windows.Forms.Helpers;
using MoMoney.Presentation.Model.Menu.File.Commands;
using MoMoney.Presentation.Presenters.Shell;
-using MoMoney.Presentation.Resources;
-using MoMoney.Presentation.Views.core;
+using MoMoney.Presentation.Views.Shell;
+using MoMoney.Presentation.Winforms.Helpers;
+using MoMoney.Presentation.Winforms.Resources;
-namespace MoMoney.Presentation.Views.Shell
+namespace MoMoney.Presentation.Winforms.Views
{
public partial class WelcomeScreen : ApplicationDockedWindow, IGettingStartedView
{
@@ -18,8 +18,7 @@ namespace MoMoney.Presentation.Views.Shell
.will_execute<IOpenCommand>(() => true)
.with_tool_tip("Open Existing File", "Open an existing project.");
- ux_create_new_file_button
- .will_be_shown_as(ApplicationImages.CreateNewFile)
+ ux_create_new_file_button.will_be_shown_as(ApplicationImages.CreateNewFile)
.when_hovered_over_will_show(ApplicationImages.CreateNewFileSelected)
.will_execute<INewCommand>(() => true)
.with_tool_tip("Create New File", "Create a new project.");
product/Presentation/Winforms/Views/WelcomeScreen.Designer.cs
@@ -1,4 +1,4 @@
-namespace MoMoney.Presentation.Views.Shell
+namespace MoMoney.Presentation.Winforms.Views
{
partial class WelcomeScreen
{
product/Presentation/Presentation.csproj
@@ -63,14 +63,6 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\lib\app\gorilla\gorilla.commons.utility.dll</HintPath>
</Reference>
- <Reference Include="gorilla.commons.windows.forms, Version=2009.5.5.1633, Culture=neutral, PublicKeyToken=687787ccb6c36c9f, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\build\lib\app\gorilla\gorilla.commons.windows.forms.dll</HintPath>
- </Reference>
- <Reference Include="gorilla.commons.windows.forms.thirdparty, Version=2009.5.5.1633, Culture=neutral, PublicKeyToken=687787ccb6c36c9f, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\build\lib\app\gorilla\gorilla.commons.windows.forms.thirdparty.dll</HintPath>
- </Reference>
<Reference Include="gorilla.testing, Version=2009.5.5.194, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\lib\test\gorilla\gorilla.testing.dll</HintPath>
@@ -351,7 +343,7 @@
<Compile Include="Winforms\Views\ApplicationShell.Designer.cs">
<DependentUpon>ApplicationShell.cs</DependentUpon>
</Compile>
- <Compile Include="Views\ApplicationShellSpecs.cs" />
+ <Compile Include="Winforms\Views\ApplicationShellSpecs.cs" />
<Compile Include="Views\IGettingStartedView.cs" />
<Compile Include="Views\ILogFileView.cs" />
<Compile Include="Views\INotificationIconView.cs" />
@@ -444,7 +436,6 @@
<Compile Include="Winforms\Helpers\SuspendLayout.cs" />
<Compile Include="Winforms\Helpers\TextControl.cs" />
<Compile Include="Winforms\Helpers\TextControlSpecs.cs" />
- <Compile Include="Winforms\Helpers\ValidateTextBoxCommandSpecs.cs" />
<Compile Include="Winforms\Keyboard\ShortcutKey.cs" />
<Compile Include="Winforms\Keyboard\ShortcutKeys.cs" />
<Compile Include="Winforms\Krypton\BindableListExtensions.cs" />