示例#1
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();
        }