summaryrefslogtreecommitdiff
path: root/product/Presentation/Model/Navigation/ViewAllBillsBranch.cs
blob: 5a6a8375dc21e1cb67987fd2c19b1ca9b4f8a890 (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 ViewAllBillsBranch : IBranchVisitor
    {
        private readonly IRunThe<IViewAllBillsPresenter> command;

        public ViewAllBillsBranch(IRunThe<IViewAllBillsPresenter> command)
        {
            this.command = command;
        }

        public void visit(ITreeBranch item_to_visit)
        {
            item_to_visit.add_child("View All Bills", ApplicationIcons.AddIncome, command);
        }
    }
}