summaryrefslogtreecommitdiff
path: root/product/Presentation/Model/Navigation/AddBillPaymentBranch.cs
blob: 28b6454b500ae42e8230fb10424e1f3e863106cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using MoMoney.Presentation.Presenters;
using MoMoney.Presentation.Presenters.billing;
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>());
        }
    }
}