main
 1using momoney.presentation.presenters;
 2using MoMoney.Presentation.Winforms.Resources;
 3using XPExplorerBar;
 4
 5namespace MoMoney.Presentation.Presenters
 6{
 7    public class AddBillingTaskPane : IActionTaskPaneFactory
 8    {
 9        readonly IRunPresenterCommand command;
10
11        public AddBillingTaskPane(IRunPresenterCommand command)
12        {
13            this.command = command;
14        }
15
16        public Expando create()
17        {
18            return Build
19                .task_pane()
20                .named("Billing")
21                .with_item(
22                Build.task_pane_item()
23                    .named("Add Bill Payments")
24                    .represented_by_icon(ApplicationIcons.AddBillPayment)
25                    .when_clicked_execute(() => command.run<IAddBillPaymentPresenter>())
26                )
27                .with_item(
28                Build.task_pane_item()
29                    .named("View All Bills Payments")
30                    .represented_by_icon(ApplicationIcons.ViewAllBillPayments)
31                    .when_clicked_execute(() => command.run<IViewAllBillsPresenter>())
32                )
33                .build();
34        }
35    }
36}