public LoadingResults(int min, int max) { viewModel = IoC.Get<ILoadingViewModel>(); if(max!=int.MinValue) { viewModel.Initialize(max,min); } }
public ProductsViewModel(IDatabaseHandlerService databaseHandlerService, IEventAggregator eventAggregator, ILoadingViewModel loadingViewModel) { this.databaseHandlerService = databaseHandlerService; this.eventAggregator = eventAggregator; this.loadingViewModel = loadingViewModel; GetAllProducts(); var barcodeEvent = this.eventAggregator.GetEvent<BarcodeTextChangedEvent>(); barcodeEvent.Subscribe(SearchByBarcode); var searchEvent = this.eventAggregator.GetEvent<SearchTextChangedEvent>(); searchEvent.Subscribe(SearchByNameAndID); }
public ChangeLoadingActionTextReslt(ILoadingViewModel loadingViewModel, string actionText) { _loadingViewModel = loadingViewModel; _actionText = actionText; }
public CloseLoadingScreenResult(ILoadingViewModel loadingViewModel) { _loadingViewModel = loadingViewModel; }