Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public LoginViewModel(LoginWindow window)
        {
            _window = window;

              LoginButtonCommand = new RelayCommand(ExecuteLoginButton, o => true);
        }
Ejemplo n.º 3
0
        public MainWindowViewModel()
        {
            _mainWindow = new MainWindow(this);

              ResearchCommand = new RelayCommand(ExecuteResearchButton, o => true);
        }