Example #1
0
 public VehicleModelBrowseVM(IEventAggregator eventAggregator, IMessageService messageService,
                             IUserPrivilege userPrivilege,
                             IVehicleModelLookupService lookupService)
     : base(eventAggregator, messageService, userPrivilege)
 {
     Title = "Vehicle models";
     this.lookupService = lookupService;
 }
        public VehicleModelBrowseDetailVM(IEventAggregator eventAggregator, IMessageService messageService,
                                          IVehicleModelLookupService lookupService)
            : base(eventAggregator, messageService)
        {
            Title = "Vehicle Models";
            this.lookupService = lookupService;

            BrowseItems = new ObservableCollection <BrowseItem>();

            EventAggregator.GetEvent <AfterDetailSavedEvent>().Subscribe(AfterDetailSaved);
            EventAggregator.GetEvent <AfterDetailDeletedEvent>().Subscribe(AfterDetailDeleted);
        }