summaryrefslogtreecommitdiff
path: root/product/Presentation/Model/Navigation/AddBillPaymentBranch.cs
blob: 4d480698587016dae51f7df85bc5feb0df0a6b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using MoMoney.Presentation.Presenters;
using MoMoney.Presentation.Winforms.Resources;

namespace MoMoney.Presentation.Model.Navigation
{
    public class AddBillPaymentBranch : IBranchVisitor
    {
        readonly IRunPresenterCommand command;

        public AddBillPaymentBranch(IRunPresenterCommand command)
        {
            this.command = command;
        }

        public void visit(ITreeBranch item_to_visit)
        {
            item_to_visit.add_child("Bill Payments", ApplicationIcons.AddIncome, () => command.run<IAddBillPaymentPresenter>());
        }
    }
}