public AccountForestViewModel(ShellModel shellModel, KeeperDb db, AccountTreesGardener accountTreesGardener, AccountLowLevelOperator accountLowLevelOperator, DepositCalculationAggregator depositCalculationAggregator) { MyForestModel = shellModel.MyForestModel; _db = db; _accountTreesGardener = accountTreesGardener; _accountLowLevelOperator = accountLowLevelOperator; _depositCalculationAggregator = depositCalculationAggregator; InitVariablesToShowAccounts(); }
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(); }