Example #1
0
 public BasketModule(IRegionManager regionManager, IEventAggregator events, PetRepository petRepository, AccessoryRepository accessoryRepository, Messenger messenger)
 {
     _regionManager = regionManager;
     _events = events;
     _petRepository = petRepository;
     _accessoryRepository = accessoryRepository;
     _messenger = messenger;
 }
Example #2
0
 protected override DependencyObject CreateShell()
 {
     var events = Container.Resolve<IEventAggregator>();
     var history = new Domain.History();
     var petRepository = new PetRepository(history, events);
     var accessoryRepository = new AccessoryRepository();
     Container.RegisterInstance(history);
     Container.RegisterInstance(petRepository);
     Container.RegisterInstance(accessoryRepository);
     Container.RegisterInstance(new Messenger());
     Container.RegisterType(typeof(ShellViewModel));
     var shell = Container.Resolve<Shell>();
     shell.Show();
     return shell;
 }
Example #3
0
 public AccessoryViewModel(AccessoryRepository repository)
 {
     _repository = repository;
 }
 public AccessoryRegistryModule(IRegionManager regionManager, AccessoryRepository accessoryRepository)
 {
     _regionManager = regionManager;
     _accessoryRepository = accessoryRepository;
 }