Exemplo n.º 1
0
        public AccountForestViewModel(ShellModel shellModel, KeeperDb db, AccountTreesGardener accountTreesGardener,
                                      AccountLowLevelOperator accountLowLevelOperator, DepositCalculationAggregator depositCalculationAggregator)
        {
            MyForestModel            = shellModel.MyForestModel;
            _db                      = db;
            _accountTreesGardener    = accountTreesGardener;
            _accountLowLevelOperator = accountLowLevelOperator;

            _depositCalculationAggregator = depositCalculationAggregator;

            InitVariablesToShowAccounts();
        }
Exemplo n.º 2
0
        public ShellModel(BalancesForShellCalculator balancesForShellCalculator)
        {
            _balancesForShellCalculator = balancesForShellCalculator;

            MyMainMenuModel = new MainMenuModel();
            MyMainMenuModel.PropertyChanged += MyMainMenuModelPropertyChanged;
            MyForestModel = new AccountForestModel();
            MyForestModel.PropertyChanged       += MyForestModelPropertyChanged;
            MyBalanceListModel                   = new BalanceListModel();
            MyTwoSelectorsModel                  = new TwoSelectorsModel();
            MyTwoSelectorsModel.PropertyChanged += MyTwoSelectorsModelPropertyChanged;
            MyStatusBarModel = new StatusBarModel();
        }