Ejemplo n.º 1
0
 public PoolLaptopsViewModel(IRegionManager regionManager, ILaptopRepository repository, IEventAggregator eventAggregator)
 {
     this.regionManager     = regionManager;
     this.repository        = repository;
     this.Laptops           = new ObservableCollection <Laptop>(repository.GetPoolLaptops());
     this.editLaptopCommand = new DelegateCommand <Laptop>(EditLaptop, CanEditLaptop);
     this.eventAggregator   = eventAggregator;
 }
Ejemplo n.º 2
0
 public void OnNavigatedTo(NavigationContext navigationContext)
 {
     Laptops = null;
     Laptops = new ObservableCollection <Laptop>(repository.GetPoolLaptops());
 }