public InitialiseFundCommand(FundInitialisationWindowViewModel fundInitialiseVM,
                              ITransferAgencyService investorService, IStaticReferences staticReferences)
 {
     _fundInitialiseVM = fundInitialiseVM;
     _investorService  = investorService;
     _staticReferences = staticReferences;
 }
Beispiel #2
0
 public NavSummaryViewModel(NavValuations navValuation, ITransferAgencyService investorService, IStaticReferences staticReferences)
 {
     _navValuation     = navValuation;
     _investorService  = investorService;
     _staticReferences = staticReferences;
     LockNavCommand    = new LockNavCommand(this, _navValuation, _investorService);
     UnlockNavCommand  = new UnlockNavCommand(this, _investorService);
 }
Beispiel #3
0
 public FundInitialisationWindowViewModel(ITransferAgencyService investorService, IStaticReferences staticReferences, Fund fund)
 {
     this.investorService             = investorService;
     this._fund                       = fund;
     _staticReferences                = staticReferences;
     _validationErrors                = new ValidationErrors();
     _validationErrors.ErrorsChanged += ChangedErrorsEvents;
     dgSeedingInvestors               = new ObservableCollection <SeedingInvestor>();
     InitialiseFundCommand            = new InitialiseFundCommand(this, investorService, staticReferences);
     _NavPrice  = 1;
     _custodian = cmbCustodians[0];
 }
Beispiel #4
0
 public InvestorManagerWindowViewModel(ITransferAgencyService investorService)
 {
     AddInvestorCommand = new AddInvestorCommand(this, investorService);
     _investorService   = investorService;
     _birthDate         = null;
     _validationErrors  = new ValidationErrors();
     _validationErrors.ErrorsChanged += ChangedErrorsEvents;
     _allInvestors = investorService.GetAllInvestors();
     if (_allInvestors.Count > 0)
     {
         _selectedInvestor = _allInvestors.First();
     }
 }
 public WindowFactory(IFundService fundService,
                      ITransactionService transactionService,
                      IAdminService adminService, IImportService importService, ISettingService settingService,
                      ITransferAgencyService investorService, IStaticReferences staticReferences,
                      IFactTableService factTableService, IPriceService priceService)
 {
     _fundService        = fundService;
     _investorService    = investorService;
     _transactionService = transactionService;
     _adminService       = adminService;
     _settingService     = settingService;
     _staticReferences   = staticReferences;
     _factTableService   = factTableService;
     _priceService       = priceService;
     _importService      = importService;
 }
Beispiel #6
0
        public InvestorActionViewModel(ITransferAgencyService investorService, IStaticReferences staticReferences, Fund fund)
        {
            // if _isNavFinal. disable the price and quantity box, which means amount is entered manually
            this._investorService = investorService;
            this._fund            = fund;
            _staticReferences     = staticReferences;
            _tradeDate            = DateExtentions.InitialDate();
            _settleDate           = DateExtentions.InitialDate();
            _lastLockedDate       = _staticReferences.GetMostRecentLockedDate(fund.FundId);

            _isNavFinal       = false;
            _TAType           = cmbIssueType[0]; // this defaults the type to subscription..
            _validationErrors = new ValidationErrors();
            _validationErrors.ErrorsChanged += ChangedErrorsEvents;
            // currency should be the funds base currency
            AddSubscriptionCommand         = new AddSubscriptionCommand(this, investorService);
            AddRedemptionCommand           = new AddRedemptionCommand(this, investorService);
            SelectedInvestorChangedCommand = new ActionCommand(ChangeInvestorHoldingCommand);
        }
 public AddSubscriptionCommand(InvestorActionViewModel investorActionVM,
                               ITransferAgencyService investorService)
 {
     _investorActionVM = investorActionVM;
     _investorService  = investorService;
 }
Beispiel #8
0
 public UnlockNavCommand(NavSummaryViewModel navValuationVM, ITransferAgencyService investorService)
 {
     _investorService = investorService;
     _navValuationVM  = navValuationVM;
 }
Beispiel #9
0
 public AddInvestorCommand(InvestorManagerWindowViewModel addInvestorVM,
                           ITransferAgencyService investorService)
 {
     _addInvestorVM   = addInvestorVM;
     _investorService = investorService;
 }