public StocksController(
     IStocksService stocksService,
     IDataUpdateService dataUpdateService)
 {
     _stocksService     = stocksService ?? throw new ArgumentNullException(nameof(stocksService));
     _dataUpdateService = dataUpdateService ?? throw new ArgumentNullException(nameof(dataUpdateService));
 }
 public CreateStockViewModel(IEventAggregator eventAggregator, IStocksService stocksService)
 {
     model = new CreateStockModel();
     this.eventAggregator = eventAggregator;
     this.stocksService   = stocksService;
     AddValidationRules();
 }
Beispiel #3
0
 public StockSearchPageViewModel(
     IStocksService stocksService,
     INavigationService navigationService,
     ILogger logger) : base(navigationService, logger)
 {
     _stocksService = stocksService ?? throw new ArgumentNullException(nameof(stocksService));
 }
Beispiel #4
0
 public Handler(
     IStocksService stocksService,
     IStocksService2 stockService2)
 {
     _stocksService  = stocksService;
     _stocksService2 = stockService2;
 }
Beispiel #5
0
 public StocksController(IStocksService stocksService,
                         IMarksService marksService,
                         IManagersService managersService)
 {
     _stocksService   = stocksService;
     _managersService = managersService;
     _marksService    = marksService;
 }
 public StocksViewModel(IEventAggregator eventAggregator, IStocksService stocksService)
 {
     model                = new StocksModel();
     model.Stocks         = new List <Stock>();
     this.eventAggregator = eventAggregator;
     this.stocksService   = stocksService;
     SubscribeEvents();
 }
Beispiel #7
0
 public StockListViewModel(IStocksService stocksService, ISLsService sLsService, IProductsService productsService)
 {
     _sLsService      = sLsService;
     _productsService = productsService;
     _stocksService   = stocksService;
     AddStockCommand  = new RelayCommand(OnAddStock);
     EditStockCommand = new RelayCommand <Stock>(OnEditStock);
     DeleteCommand    = new RelayCommand <Stock>(OnDeleteStock);
 }
 public MainWindowViewModel(ICompaniesService companiesService, IStocksService stocksService)
 {
     this.StocksLoaded     = false;
     this.Companies        = new ObservableCollection <Company>();
     this.Stocks           = new ObservableCollection <Stock>();
     this.companiesService = companiesService;
     this.stocksService    = stocksService;
     this.LoadCommand      = new DelegateCommand <object>(this.InitialLoad);
 }
        public SystemSettingRetailViewModel(IAppContextService appContextService, ISystemSettingRetailsService systemSettingRetailsService, IBankAccountsService bankAccountsService, IStocksService stocksService)
        {
            _bankAccountsService         = bankAccountsService;
            _stocksService               = stocksService;
            _appContextService           = appContextService;
            _systemSettingRetailsService = systemSettingRetailsService;
            SystemSettingRetailModel     = _systemSettingRetailsService.GetSystemSettingRetailModel();

            SaveCommand = new RelayCommand(onSave);
        }
        public AddEditStockViewModel(IStocksService stocksService, IProductsService productsService, IUsersService usersService, ISLsService sLsService)
        {
            _stocksService   = stocksService;
            _productsService = productsService;
            _sLsService      = sLsService;
            _usersService    = usersService;

            CancelCommand = new RelayCommand(OnCancel);
            SaveCommand   = new RelayCommand(OnSave, CanSave);
            ProductsDropDownOpenedCommand = new RelayCommand(OnProductsDropDownOpened, () => Products != null && Products.Any());
            SLsDropDownOpenedCommand      = new RelayCommand(OnSLsDropDownOpened, () => SLs != null && SLs.Any());
            DLs1DropDownOpenedCommand     = new RelayCommand <string>(OnDLs1DropDownOpened);
            DLs2DropDownOpenedCommand     = new RelayCommand <string>(OnDLs2DropDownOpened);
            UsersDropDownOpenedCommand    = new RelayCommand(OnUsersDropDownOpened, () => Users != null && Users.Any());
        }
        public StocksViewModel(IStocksService service)
        {
            _service = service;
            GetLatestPrices();

            SubscriptionCommand = new RelayCommand(SubscriptionCommandExecute);
            ServiceCommand = new RelayCommand(ServiceRunningCommandExecute);

            var priceUpdates = Observable.FromEventPattern<PriceChangedEventArgs>(
                _service,
                "PriceChanged");

            priceUpdates.Where(e => Subscribed)
                //.Throttle(TimeSpan.FromSeconds(1))
                .Subscribe(PriceChanged);
        }
 public StockDetailsViewModel(IStocksService stocksService)
     : base(stocksService)
 {
 }
Beispiel #13
0
 public StocksController(IStocksService stocksService)
 {
     _stocksService = stocksService ?? throw new ArgumentNullException(nameof(stocksService));
 }
 public AddPortfolioTrackerHandler(IStocksService stocksService)
 {
     _stocksService = stocksService ?? throw new ArgumentNullException(nameof(stocksService));
 }
 public StockController(IStockCompanyService stockCompanyService, IStocksService stocksService, IPurchaseService purchaseService)
 {
     _stockCompanyService = stockCompanyService;
     _stocksService       = stocksService;
     _purchaseService     = purchaseService;
 }
Beispiel #16
0
 public StocksController(IStocksService usersService)
 {
     _stocksService = usersService;
 }
 public GetStockDataAsyncHandler(IStocksService stockService)
 {
     _stockService = stockService;
 }
 public StocksController(IStocksService stocksService, IMapper mapper)
 {
     _stocksService = stocksService;
     _mapper        = mapper;
 }
 public GetStockNewsHandler(IStocksService stocksService)
 {
     _stocksService = stocksService ?? throw new ArgumentNullException(nameof(stocksService));
 }
Beispiel #20
0
 public SellStockHandler(IStocksService stocksService)
 {
     _stocksService = stocksService;
 }
Beispiel #21
0
 public AddStockHandler(IStocksService stockService)
 {
     _stockService = stockService;
 }
 public StocksController(IStocksService stocksService)
 {
     _stocksService = stocksService;
 }
 public StockDetailsViewModelCore(IStocksService stocksService)
 {
     _stocksService = stocksService;
 }
Beispiel #24
0
 public StockHub(IStocksService stocks)
 {
     _stocks = stocks;
 }
 public GetStockPortfolioAsyncHandler(IStocksService stocksService)
 {
     _stockService = stocksService ?? throw new ArgumentNullException(nameof(stocksService));
 }
 public GetPortfolioValueListHandler(IStocksService stocksService)
 {
     _stocksService = stocksService ?? throw new ArgumentNullException(nameof(stocksService));
 }