Ejemplo n.º 1
0
 public AddFXTradeWindowViewModel(ITransactionService transactionService, IStaticReferences staticReferences, Fund fund)
 {
     _fund = fund;
     _transactionService              = transactionService;
     _staticReferences                = staticReferences;
     _lastLockedDate                  = _staticReferences.GetMostRecentLockedDate(fund.FundId);
     _validationErrors                = new ValidationErrors();
     _validationErrors.ErrorsChanged += ChangedErrorsEvents;
     _tradeDate        = DateExtentions.InitialDate();
     _settleDate       = DateExtentions.InitialDate();
     AddFXTradeCommand = new AddFXTradeCommand(this, transactionService);
 }
 public AddFundWindowViewModel(IFundService fundService, IStaticReferences staticReferences)
 {
     AddFundCommand    = new AddFundCommand(this, fundService);
     _fundService      = fundService;
     _fundLaunch       = DateExtentions.InitialDate();
     _validationErrors = new ValidationErrors();
     _validationErrors.ErrorsChanged += ChangedErrorsEvents;
     _staticReferences   = staticReferences;
     _MinimumInvestment  = decimal.One;
     _selectedHurdleType = "None";
     _HighWaterMark      = false;
     // to set decimal points i might need to use a converter
 }
Ejemplo n.º 3
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);
        }