blob: dbc54150ee6e1a0f4c6ee4f11e2777e97098e4c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
using MoMoney.Presentation.Winforms.Resources;
using XPExplorerBar;
namespace MoMoney.Presentation.Presenters
{
public class AddIncomeTaskPane : IActionTaskPaneFactory
{
readonly IRunPresenterCommand command;
public AddIncomeTaskPane(IRunPresenterCommand command)
{
this.command = command;
}
public Expando create()
{
return Build.task_pane()
.named("Income")
.with_item(
Build.task_pane_item()
.named("Add Income")
.represented_by_icon(ApplicationIcons.AddNewIncome)
.when_clicked_execute(() => command.run<IAddNewIncomePresenter>())
)
.with_item(
Build.task_pane_item()
.named("View All Income")
.represented_by_icon(ApplicationIcons.ViewAllIncome)
.when_clicked_execute(() => command.run<IViewIncomeHistoryPresenter>())
)
.build();
}
}
}
|