public AccountSelectorViewModel(IAccountService accountService, ICacheService cacheService, IApplicationState applicationState, IEntityService entityService, IReportServiceClient reportServiceClient) { _accounts = new ObservableCollection <AccountScreenRow>(); _accountService = accountService; _cacheService = cacheService; _applicationState = applicationState; _entityService = entityService; _reportServiceClient = reportServiceClient; ShowAccountDetailsCommand = new CaptionCommand <string>(Resources.AccountDetails.Replace(' ', '\r'), OnShowAccountDetails, CanShowAccountDetails); PrintCommand = new CaptionCommand <string>(Resources.Print, OnPrint); AccountButtonSelectedCommand = new CaptionCommand <AccountScreen>("", OnAccountScreenSelected); AutomationCommandSelectedCommand = new CaptionCommand <AccountScreenAutmationCommandMap>("", OnAutomationCommandSelected); EventServiceFactory.EventService.GetEvent <GenericEvent <EventAggregator> >().Subscribe( x => { if (x.Topic == EventTopicNames.ResetCache) { _accountButtons = null; _batchDocumentButtons = null; _selectedAccountScreen = null; } }); }
public AccountSelectorViewModel(IAccountService accountService, ICacheService cacheService, IApplicationState applicationState, IEntityService entityService, IReportServiceClient reportServiceClient) { _accounts = new ObservableCollection<AccountScreenRow>(); _accountService = accountService; _cacheService = cacheService; _applicationState = applicationState; _entityService = entityService; _reportServiceClient = reportServiceClient; ShowAccountDetailsCommand = new CaptionCommand<string>(Resources.AccountDetails.Replace(' ', '\r'), OnShowAccountDetails, CanShowAccountDetails); PrintCommand = new CaptionCommand<string>(Resources.Print, OnPrint); AccountButtonSelectedCommand = new CaptionCommand<AccountScreen>("", OnAccountScreenSelected); AutomationCommandSelectedCommand = new CaptionCommand<AccountScreenAutmationCommandMap>("", OnAutomationCommandSelected); EventServiceFactory.EventService.GetEvent<GenericEvent<EventAggregator>>().Subscribe( x => { if (x.Topic == EventTopicNames.ResetCache) { _accountButtons = null; _batchDocumentButtons = null; _selectedAccountScreen = null; } }); }
public PrintAccountTransactions(IAccountService accountService, IReportServiceClient reportServiceClient) { _accountService = accountService; _reportServiceClient = reportServiceClient; }
public PrintAccountScreen(IReportServiceClient reportServiceClient, ICacheService cacheService) { _reportServiceClient = reportServiceClient; _cacheService = cacheService; }