main
1using MoMoney.Presentation.Presenters;
2using MoMoney.Presentation.Winforms.Resources;
3
4namespace MoMoney.Presentation.Model.Navigation
5{
6 public class AddNewBillBranch : IBranchVisitor
7 {
8 readonly IRunPresenterCommand command;
9
10 public AddNewBillBranch(IRunPresenterCommand command)
11 {
12 this.command = command;
13 }
14
15 public void visit(ITreeBranch item_to_visit)
16 {
17 item_to_visit.add_child("Add Bills", ApplicationIcons.AddIncome, () => command.run<IAddCompanyPresenter>());
18 }
19 }
20}