main
1using MoMoney.Presentation.Core;
2using MoMoney.Service.Infrastructure.Threading;
3
4namespace MoMoney.Presentation.Presenters
5{
6 public class RunPresenterCommand : IRunPresenterCommand
7 {
8 readonly IApplicationController application_controller;
9 readonly CommandProcessor processor;
10
11 public RunPresenterCommand(IApplicationController application_controller, CommandProcessor processor)
12 {
13 this.application_controller = application_controller;
14 this.processor = processor;
15 }
16
17 public void run<Presenter>() where Presenter : IPresenter
18 {
19 processor.add(() => application_controller.run<Presenter>());
20 }
21 }
22}