public MainWindowViewModel() { GazePointClientProxy.StartRecording(1); NextQuestionCommand = new RelayCommand(OnNextQuestion); ConfirmAnswer = new RelayCommand <int>(OnConfirmAnswer); SelectedControl = userControls[i]; }
public void OnNextQuestion() { if (i < userControls.Count() - 1) { SelectedControl = userControls[(i = (++i))]; GazePointClientProxy.ChangeQuestion(ans, i); } else { SelectedControl = new End(); GazePointClientProxy.StopRecording(ans); } }