예제 #1
0
        private void MushraTestTransportControlsView_AddScore(object sender, bool testModeFlag)
        {
            if (testModeFlag)
            {
                EventArgs e = null;
                _sliderName = "";

                SliderChanged?.Invoke(sender, e);

                bool flag = CheckAllSamplesPlayedAndScored();
                ScoringSliderEvent?.Invoke(sender, flag);
                if (flag == false)
                {
                    MessageBox.Show("Can't iterate to next trial unless the current sample is played and scored.", "Info", MessageBoxButton.OK, MessageBoxImage.Information);
                    return;
                }
            }
            _mushraModelList.Score.Clear();
            _mushraModelList.Score        = _scoreList.ToList();
            _mushraModelList.StimulusName = _stlimulusNames.ToList();
            _scoreList.Clear();
            ResetScales();
            ResetButtons();
            //_resetFlag = false;

            for (var index = 0; index < _numberOfActiveStimulus; index++)
            {
                _stimulusPlayed[index] = false;
                _stimulusScored[index] = false;
            }
        }
예제 #2
0
        private void ABCTestView_AddScore(object sender, bool testModeFlag)
        {
            if (testModeFlag)
            {
                ScoringSliderEvent?.Invoke(sender, _sliderChanged);
                if (_sliderChanged == false)
                {
                    return;
                }

                _score = _value;
                _abcModelList.Score = _score;
                if (_eventCount < _abcModelList.trials.Count)
                {
                    _abcModelList.ScoredStimulus = BBtn.IsChecked == true ? "B" : "C";
                }
                else
                {
                    _eventCount = 0;
                }
                _eventCount++;
            }
            else
            {
                _abcModelList.Score = 0.0;
            }

            BBtn.IsChecked = false;
            CBtn.IsChecked = false;
            ResetScale();
        }