public AccountViewModel(IpmEntityModel entityModel, IRegionManager regionManager) { this.entityModel = entityModel; this.regionManager = regionManager; this.showBalanceBookCommand = new DelegateCommand <int?>(this.ExecuteShowBalanceBook); this.createNewTransactionCommand = new DelegateCommand <int?>(this.ExecuteCreateNewTransaction); }
public NewAccountEntryViewModel(IpmEntityModel entityModel, PortfolioViewModel portfolioViewModel) { this.entityModel = entityModel; this.portfolioViewModel = portfolioViewModel; this.createAccountCommand = new DelegateCommand(this.ExecuteCreateAccount); this.cancelAccountCreationCommand = new DelegateCommand(this.ExecuteCancelAccountCreation); this.Model = new Account(); }
public HomeViewModel(IpmEntityModel entityModel, IRegionManager regionManager) { this.entityModel = entityModel; this.regionManager = regionManager; this.CreateNewPortfolioCommand = new DelegateCommand <string>(this.ExecuteCreateNewPortfolio); this.CancelPortfolioCreationCommand = new DelegateCommand(this.ExecuteCancelPortfolioCreation); this.openPortfolioCommand = new DelegateCommand <int?>( this.ExecuteOpenPortfolio, this.CanExecuteOpenPortfolio); this.portfolios.AddRange( this.entityModel.Portfolios.Select(p => new PortfolioEntryViewModel { Model = p })); }
public PortfolioViewModel(IpmEntityModel entityModel, IRegionManager regionManager) { this.entityModel = entityModel; this.regionManager = regionManager; this.openAccountCommand = new DelegateCommand <int?>(this.ExecuteOpenAccount); }
public NewTransactionViewModel(IpmEntityModel entityModel) { this.entityModel = entityModel; this.SaveCommand = new DelegateCommand(this.ExecuteSaveCommand); }
public AccountBalanceBookViewModel(IpmEntityModel entityModel, IRegionManager regionManager) { this.entityModel = entityModel; this.regionManager = regionManager; }
public void SetUp() { this.entityModel = new IpmEntityModel(); Assert.IsNotNull(this.entityModel); this.entityModel.Database.Log = Console.Write; }