Ejemplo n.º 1
0
 public LoadingResults(int min, int max)
 {
     viewModel = IoC.Get<ILoadingViewModel>();
     if(max!=int.MinValue)
     {
         viewModel.Initialize(max,min);
     }
 }
Ejemplo n.º 2
0
        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;
 }
Ejemplo n.º 4
0
 public CloseLoadingScreenResult(ILoadingViewModel loadingViewModel)
 {
     _loadingViewModel = loadingViewModel;
   
 }