public LogViewerViewModel(string name, PipeManager pipeManager, Dispatcher uiDispatcher) { _uiDispatcher = uiDispatcher; _pipeManager = pipeManager; OutputConcurrentQueue = new ObservableConcurrentQueue<LogItem>(MaximumLogItemsAllowed); _viewer = new LogViewer(this); AutoScroll = true; _viewer.Title = string.Format("LogViewer - {0}", name); }
public ResearchViewModel() { _researchWindow = new ResearchWindow(this); PipeManager = new PipeManager(); _uiDispatcher = Dispatcher.CurrentDispatcher; LogViewerViewModel = new LogViewerViewModel("Research", PipeManager, _uiDispatcher); ParseConfigFile(); StartDate = EndDate = new DateTime(2014, 1, 1); _startRelayCommand = new RelayCommand(ExecuteStartButton, o => true); _stopRelayCommand = new RelayCommand(ExecuteStopButton, o => true); StartButtonCommand = _startRelayCommand; ShowLogViewerCommand = new RelayCommand(ExecuteShowLogViewer, o => true); ExitCommand = new RelayCommand(ExecuteExit, o => true); ReloadConfigCommand = new RelayCommand(ExecuteReloadConfig, o => true); }