Пример #1
0
        public ClothesDetailsActionButtonsViewModel(IEventAggregator eventAggregator,
                                                    IUnityContainer container,
                                                    IRegionManager regionManager,
                                                    IClothesServices clothesService,
                                                    ClothesEditViewModelFactory viewModelFactory)
        {
            //Use the event aggregation to catch the newly selected item on the list
            this.eventAggregator = eventAggregator;
            PieceOfClothingChangedEvent evt =
                eventAggregator.GetEvent <PieceOfClothingChangedEvent>();

            evt.Subscribe(OnCurrentItemChanged, true);

            //Register the injected fields
            this.container            = container;
            this.regionManager        = regionManager;
            this.clothesService       = clothesService;
            this.editViewModelFactory = viewModelFactory;
        }
Пример #2
0
 public NavigationViewModel(IRegionManager regionManager, IUnityContainer container, ClothesEditViewModelFactory viewModelFactory)
 {
     this.regionManager        = regionManager;
     this.container            = container;
     this.editViewModelFactory = viewModelFactory;
 }