Example #1
0
        private void drawWord()
        {
            Point screenPosition = ScreenPosition(wordLabel.PreferredSize);

            // configuring label that have word stimulus dimensions, color and position
            wordLabel = ExpositionController.InitializeWordLabel(executingTest.ProgramInUse.FontSize, wordsList[wordCounter], colorsList[colorCounter], screenPosition);

            currentStimuli[0] = wordsList[wordCounter];
            currentLists[0]   = executingTest.ProgramInUse.getWordListFile().ListName;

            currentColor = colorsList[colorCounter];
            wordCounter++;

            if (wordCounter == wordsList.Length)
            {
                wordCounter = 0;
            }
            colorCounter++;
            if (colorCounter == colorsList.Length)
            {
                colorCounter = 0;
            }
            expositionBW.ReportProgress(currentExposition / executingTest.ProgramInUse.NumExpositions * 100, wordLabel);
        }