Beispiel #1
0
 public ClaimsListViewModel(IClaimDataService claimsDataService, IEventAggregator eventAggregator, IClaimsNavigator claimsNavigator)
 {
     this.claimsDataService = claimsDataService;
     this.eventAggregator   = eventAggregator;
     this.claimsNavigator   = claimsNavigator;
     this.Claims            = new ClaimsCollection();
     this.openClaimCommand  = new DelegateCommand <Claim>(this.OpenClaim);
 }
Beispiel #2
0
        public ClaimsRegionContentController(

            IEventAggregator eventAggregator,

            IClaimsNavigator claimsNavigator)
        {
            if (eventAggregator == null)
            {
                throw new ArgumentNullException("eventAggregator");
            }

            if (claimsNavigator == null)
            {
                throw new ArgumentNullException("claimsNavigator");
            }


            this.eventAggregator = eventAggregator;

            this.claimsNavigator = claimsNavigator;
            this.eventAggregator.GetEvent <ClaimSelectedEvent>().Subscribe(this.ClaimSelected, true);
        }
Beispiel #3
0
 public ClaimDetailViewModel(IClaimDataService claimDataService, IClaimsNavigator claimsNavigator)
 {
     this.goBackCommand    = new DelegateCommand(this.GoBack);
     this.claimDataService = claimDataService;
     this.claimsNavigator  = claimsNavigator;
 }