public GIDetailsViewModel(IRegionManager _RegionManager, IEventAggregator _EventAggregator, IGIServices _GIServices) { RegionManager = _RegionManager; EventAggregator = _EventAggregator; GIServices = _GIServices; GoBackCommand = new DelegateCommand(GoBack); confirmRemoveThisInteractionRequest = new InteractionRequest <Confirmation>(); }
public GIMainViewModel(IEventAggregator _EventAggregator, IRegionManager _RegionManager, IGIServices _GIServices, IGITimerSevices _timerServices) { RegionManager = _RegionManager; GIServices = _GIServices; timerServices = _timerServices; EventAggregator = _EventAggregator; EventAggregator.GetEvent <AuthenticatedUserEvent>().Subscribe(InitAuthenticatedUser); EventAggregator.GetEvent <CollectionViewSourceEvent>().Subscribe(InitCollectionViewSource); EventAggregator.GetEvent <GI_ItemMessageEvent>().Subscribe(ConsumeItemMessage); IsEnableAutoRefresh = true; OnLoadedCommand = new DelegateCommand(OnLoaded); _ExportCommand = new DelegateCommand <object>(Export); OpenGIDetailsCommand = new DelegateCommand <GITransaction>(OpenGIDetails); confirmDeleteInteractionRequest = new InteractionRequest <Confirmation>(); }