Ejemplo n.º 1
0
        private void ScriptFSM_WaitTimerDone(object sender, EventArgs e)
        {
            ScriptTrialMachine sm = (ScriptTrialMachine)sender;

            ResetMazeSafe();
            sm.RunNextTrial();
        }
Ejemplo n.º 2
0
        private void ScriptFSM_TrialComplete(object sender, int e)
        {
            ScriptTrialMachine sm = (ScriptTrialMachine)sender;

            if (sm.CurrentTrial < sm.TrialCount)
            {
                if (sm.PromptBetweenTrials)
                {
                    System.Windows.Forms.MessageBox.Show($"Click OK to start Trial {sm.CurrentTrial + 1} of {sm.TrialCount}");
                    ResetMaze();
                    sm.RunNextTrial();
                }
                else
                {
                    sm.StartWaitTimer();
                }
            }
        }