Commit d6a77d7
Changed files (5)
trunk
product
MyMoney
Infrastructure
eventing
Presentation
Model
Menu
File
Commands
Presenters
Views
Shell
trunk/product/MyMoney/Infrastructure/eventing/EventAggregator.cs
@@ -37,7 +37,7 @@ namespace MoMoney.Infrastructure.eventing
.Select(x => x.downcast_to<IEventSubscriber<Event>>())
.each(x =>
{
- this.log().debug("publishing event {0} to {1}", typeof (Event), x.GetType().FullName);
+ this.log().debug("publishing event {0} to {1}", typeof (Event).Name, x.GetType().FullName);
x.notify(the_event_to_broadcast);
}
);
trunk/product/MyMoney/Presentation/Model/Menu/File/Commands/CloseProjectCommand.cs
@@ -1,9 +1,10 @@
+using MoMoney.Infrastructure.Logging;
using MoMoney.Presentation.Model.Projects;
using MoMoney.Utility.Core;
namespace MoMoney.Presentation.Model.Menu.File.Commands
{
- public interface ICloseCommand : ICommand, ISaveChangesCallback
+ public interface ICloseCommand : ICommand, ISaveChangesCallback, ILoggable
{
}
trunk/product/MyMoney/Presentation/Presenters/Shell/GettingStartedPresenter.cs
@@ -25,12 +25,12 @@ namespace MoMoney.Presentation.Presenters.Shell
public void run()
{
broker.subscribe_to(this);
- //view.display();
+ view.display();
}
public void notify(new_project_opened message)
{
- view.display();
+ //view.display();
}
}
}
\ No newline at end of file
trunk/product/MyMoney/Presentation/Presenters/Shell/UnhandledErrorPresenter.cs
@@ -1,4 +1,5 @@
using MoMoney.Infrastructure.eventing;
+using MoMoney.Infrastructure.Extensions;
using MoMoney.Presentation.Core;
using MoMoney.Presentation.Model.messages;
using MoMoney.Presentation.Views.Shell;
@@ -27,6 +28,7 @@ namespace MoMoney.Presentation.Presenters.Shell
public void notify(unhandled_error_occurred message)
{
+ this.log().debug("received error");
view.display(message.error);
}
}
trunk/product/MyMoney/Presentation/Views/Shell/UnhandledErrorView.cs
@@ -18,14 +18,12 @@ namespace MoMoney.Presentation.Views.Shell
public void display(Exception exception)
{
- if (InvokeRequired)
- {
- on_ui_thread(() => ux_message.Text = exception.ToString());
- }
- else
- {
- ux_message.Text = exception.ToString();
- }
+ on_ui_thread(() =>
+ {
+ ux_message.Text = exception.ToString();
+ ShowDialog();
+ }
+ );
}
}
}
\ No newline at end of file