public MainViewModel( IViewModelWindowManager viewModelWindowManager, IMessageBus messageBus, ForwardRuleDispatch forwardRuleDispatch, Func <MessageListViewModel> messageListViewModelFactory, Func <MessageDetailViewModel> messageDetailViewModelFactory, LogClientSinkQueue logClientSinkQueue, AppResourceLocator resourceLocator) { _viewModelWindowManager = viewModelWindowManager; this._messageBus = messageBus; _forwardRuleDispatch = forwardRuleDispatch; MessageListViewModel = messageListViewModelFactory(); MessageDetailViewModel = messageDetailViewModelFactory(); MessageListViewModel.ConductWith(this); MessageDetailViewModel.ConductWith(this); _logClientSinkQueue = logClientSinkQueue; _resourceLocator = resourceLocator; LogText = _resourceLocator.GetResourceString("LogClientSink.html"); SetupObservables(); }
public MainViewModel( IViewModelWindowManager viewModelWindowManager, IAppCommandHub appCommandHub, IUiCommandHub uiCommandHub, ForwardRuleDispatch forwardRuleDispatch, Func <MessageListViewModel> messageListViewModelFactory, Func <MessageDetailViewModel> messageDetailViewModelFactory, UiLogSinkQueue uiLogSinkQueue, AppResourceLocator resourceLocator) { this._viewModelWindowManager = viewModelWindowManager; this._appCommandHub = appCommandHub; this._uiCommandHub = uiCommandHub; this._forwardRuleDispatch = forwardRuleDispatch; this.MessageListViewModel = messageListViewModelFactory(); this.MessageDetailViewModel = messageDetailViewModelFactory(); this.MessageListViewModel.ConductWith(this); this.MessageDetailViewModel.ConductWith(this); this._uiLogSinkQueue = uiLogSinkQueue; this._resourceLocator = resourceLocator; this.LogText = this._resourceLocator.GetResourceString("LogClientSink.html"); this.SetupObservables(); }