/// <summary> /// Load a tutorial set of markers into the queue (two left hand, two right hand, and two both hand) /// </summary> private void ShowTutorial() { trialConditions = new Queue <MarkerCondition>(); trialConditions.Enqueue(new MarkerCondition(MarkerCondition.Hand.Left, "B2")); trialConditions.Enqueue(new MarkerCondition(true)); trialConditions.Enqueue(new MarkerCondition(MarkerCondition.Hand.Right, "B2")); trialConditions.Enqueue(new MarkerCondition(true)); trialConditions.Enqueue(new MarkerCondition(MarkerCondition.Hand.Left, "C5")); trialConditions.Enqueue(new MarkerCondition(true)); trialConditions.Enqueue(new MarkerCondition(MarkerCondition.Hand.Right, "C5")); trialConditions.Enqueue(new MarkerCondition(true)); trialConditions.Enqueue(new MarkerCondition(twoHandLabel)); trialConditions.Enqueue(new MarkerCondition(MarkerCondition.Hand.Both, "D1 B5")); trialConditions.Enqueue(new MarkerCondition(true)); trialConditions.Enqueue(new MarkerCondition(MarkerCondition.Hand.Both, "B3 B7")); trialConditions.Enqueue(new MarkerCondition(true)); trialConditions.Enqueue(new MarkerCondition(experiementCompleteLabel)); CurrentStatus = "Ready to begin!"; ParticipantMarkerDisplayWindow pmdw = new ParticipantMarkerDisplayWindow(this); pmdw.Owner = this; pmdw.Show(); }
private void PromptParticipantNumber() { ParticipantNumberDialog pnd = new ParticipantNumberDialog(); pnd.Owner = this; if (pnd.ShowDialog() == true) { participantNumber = int.Parse(pnd.ParticipantNumber); LoadTrialData(); participantDirectory = "Participant" + participantNumber.ToString("00"); Directory.CreateDirectory(System.IO.Path.Combine(path, participantDirectory)); ParticipantMarkerDisplayWindow pmdw = new ParticipantMarkerDisplayWindow(this); pmdw.Owner = this; pmdw.Show(); } }