コード例 #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);
        }
コード例 #2
0
ファイル: LoginViewModel.cs プロジェクト: MindTheGap/BTrader
        public LoginViewModel(LoginWindow window)
        {
            _window = window;

              LoginButtonCommand = new RelayCommand(ExecuteLoginButton, o => true);
        }
コード例 #3
0
        public MainWindowViewModel()
        {
            _mainWindow = new MainWindow(this);

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