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); }
public LoginViewModel(LoginWindow window) { _window = window; LoginButtonCommand = new RelayCommand(ExecuteLoginButton, o => true); }
public MainWindowViewModel() { _mainWindow = new MainWindow(this); ResearchCommand = new RelayCommand(ExecuteResearchButton, o => true); }