예제 #1
0
 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);
 }
예제 #2
0
        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();
        }
예제 #3
0
        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
            }));
        }
예제 #4
0
 public PortfolioViewModel(IpmEntityModel entityModel, IRegionManager regionManager)
 {
     this.entityModel        = entityModel;
     this.regionManager      = regionManager;
     this.openAccountCommand = new DelegateCommand <int?>(this.ExecuteOpenAccount);
 }
예제 #5
0
        public NewTransactionViewModel(IpmEntityModel entityModel)
        {
            this.entityModel = entityModel;

            this.SaveCommand = new DelegateCommand(this.ExecuteSaveCommand);
        }
예제 #6
0
 public AccountBalanceBookViewModel(IpmEntityModel entityModel, IRegionManager regionManager)
 {
     this.entityModel   = entityModel;
     this.regionManager = regionManager;
 }
예제 #7
0
 public void SetUp()
 {
     this.entityModel = new IpmEntityModel();
     Assert.IsNotNull(this.entityModel);
     this.entityModel.Database.Log = Console.Write;
 }