public UnderlyingMaintenanceViewModel(IUnderlyingManager underlyingManager, IEventAggregator eventAggregator) { if (underlyingManager == null) { throw new ArgumentNullException("underlyingManager"); } if (eventAggregator == null) { throw new ArgumentNullException("eventAggregator"); } this.underlyingManager = underlyingManager; this.eventAggregator = eventAggregator; AddNewItemCommand = new AddNewItemCommand(this); ClearInputCommand = new ClearInputCommand(this); UpdateValidityCommand = new UpdateValidityCommand(this); InitializeCollections(); InitializeEventSubscriptions(); }
public RequestForQuoteGridViewModel(IBookManager bookManager, IClientManager clientManager, IOptionRequestParser optionRequestParser, IOptionRequestPricer optionRequestPricer, IChatServiceManager chatServiceManager, IUnderlyingManager underlyingManager, IOptionRequestPersistanceManager optionRequestPersistanceManager, IEventAggregator eventAggregator, IConfigurationManager configManager, IUserManager userManager) { if (optionRequestPricer == null) { throw new ArgumentNullException("optionRequestPricer"); } if (optionRequestParser == null) { throw new ArgumentNullException("optionRequestParser"); } if (clientManager == null) { throw new ArgumentNullException("clientManager"); } if (bookManager == null) { throw new ArgumentNullException("bookManager"); } if (userManager == null) { throw new ArgumentNullException("userManager"); } if (underlyingManager == null) { throw new ArgumentNullException("underlyingManager"); } if (chatServiceManager == null) { throw new ArgumentNullException("chatServiceManager"); } if (eventAggregator == null) { throw new ArgumentNullException("eventAggregator"); } if (optionRequestPersistanceManager == null) { throw new ArgumentNullException("optionRequestPersistanceManager"); } if (configManager == null) { throw new ArgumentNullException("configManager"); } this.optionRequestParser = optionRequestParser; this.optionRequestPricer = optionRequestPricer; this.clientManager = clientManager; this.bookManager = bookManager; this.userManager = userManager; this.chatServiceManager = chatServiceManager; this.underlyingManager = underlyingManager; this.eventAggregator = eventAggregator; this.optionRequestPersistanceManager = optionRequestPersistanceManager; this.configManager = configManager; InitializeCommands(); InitializeCollections(); InitializeEventSubscriptions(); }
public RequestForQuoteFunctionsViewModel(IEventAggregator eventAggregator, IClientManager clientManager, IUnderlyingManager underlyingManager, IBookManager bookManager, ISearchManager searchManager, IConfigurationManager configManager, IUserManager userManager, IGroupManager groupManager) { if (eventAggregator == null) { throw new ArgumentNullException("eventAggregator"); } if (clientManager == null) { throw new ArgumentNullException("clientManager"); } if (underlyingManager == null) { throw new ArgumentNullException("underlyingManager"); } if (bookManager == null) { throw new ArgumentNullException("bookManager"); } if (searchManager == null) { throw new ArgumentNullException("searchManager"); } if (configManager == null) { throw new ArgumentNullException("configManager"); } if (userManager == null) { throw new ArgumentNullException("userManager"); } if (groupManager == null) { throw new ArgumentNullException("groupManager"); } SearchRequestsCommand = new SearchRequestsCommand(this); FilterRequestsCommand = new FilterRequestsCommand(this); ClearCriteriaCommand = new ClearCriteriaCommand(this); SaveSearchCommand = new SaveSearchCommand(this); DeleteSearchCommand = new DeleteSearchCommand(this); UpdatePrivacyCommand = new UpdatePrivacyCommand(this); this.clientManager = clientManager; this.underlyingManager = underlyingManager; this.bookManager = bookManager; this.searchManager = searchManager; this.eventAggregator = eventAggregator; this.configManager = configManager; this.userManager = userManager; this.groupManager = groupManager; InitializeCollections(); InitializeEventSubscriptions(); }