Example #1
0
        public FormReactExposition(string prgName, string participantName, char mark)
        {
            this.FormBorderStyle = FormBorderStyle.None;
            this.MaximizeBox     = true;
            this.StartPosition   = FormStartPosition.Manual;
            ExpositionController.formSecondScreen(this);
            InitializeComponent();
            startTime = hour + "_" + minutes + "_" + seconds;
            executingTest.ParticipantName = participantName;
            executingTest.setProgramInUse(path + "/prg/", prgName);
            executingTest.Mark = mark;

            outputFile = outputDataPath + executingTest.ParticipantName + "_" + executingTest.ProgramInUse.ProgramName + ".txt";
            startExposition();
            this.ShowDialog();
        }
        public MatchingExposition(string prgName, string participantName, char mark)
        {
            this.FormBorderStyle = FormBorderStyle.None;
            this.MaximizeBox     = true;
            this.StartPosition   = FormStartPosition.Manual;
            ExpositionController.formSecondScreen(this);

            InitializeComponent();
            startTime = hour + "_" + minutes + "_" + seconds;
            executingTest.ParticipantName = participantName;
            executingTest.setProgramInUse(prgName);
            executingTest.Mark = mark;

            stimuluControls = new List <Control>();
            outputFile      = MatchingProgram.GetResultsPath() + executingTest.ParticipantName + "_" + executingTest.ProgramInUse.ProgramName + ".txt";
            startExposition();
            this.ShowDialog();
        }
Example #3
0
        /// <summary>
        /// This is the constructor method for stroop test exposition form.</summary>
        /// <param name="prgName"> Program name is the name of the current StroopProgram that wil be executed.</param>
        /// <param name="mark"> Mark is the char that will be send as signal to the program running background, normally neuronspectrum</param>
        /// <param name="usrName"> Username is the test participant name</param>
        public FormExposition(string prgName, string usrName, char mark)
        {
            this.FormBorderStyle = FormBorderStyle.None;
            this.MaximizeBox     = true;
            this.StartPosition   = FormStartPosition.Manual;
            InitializeComponent();

            // use parameters to create basic information of current program being used
            currentTest = new StroopTest(prgName);
            currentTest.ParticipantName = usrName;
            currentTest.Mark            = mark;
            currentTest.InitialDate     = DateTime.Now;


            ExpositionController.formSecondScreen(this);

            configureCurrentTest();
            startExpo();
            this.ShowDialog();
        }