private void executeButton_Click(object sender, EventArgs e) { if (Global.GlobalFormMain.contentPanel.Controls.Count > 0) { checkSave(); } if (this.ValidateChildren(ValidationConstraints.Enabled)) { if (executingTypeLabel.Text.Equals(LocRM.GetString("stroopTest", currentCulture))) { ExpositionController.BeginStroopTest(executingNameLabel.Text, participantComboBox.Text, markTextBox.Text[0], this); } else if (executingTypeLabel.Text.Equals(LocRM.GetString("reactionTest", currentCulture))) { ExpositionController.BeginReactionTest(executingNameLabel.Text, participantComboBox.Text, markTextBox.Text[0], this); } else if (executingTypeLabel.Text.Equals(LocRM.GetString("experiment", currentCulture))) { ExpositionController.BeginExperimentTest(executingNameLabel.Text, participantComboBox.Text, markTextBox.Text[0], this); } else if (executingTypeLabel.Text.Equals(LocRM.GetString("matchingTest", currentCulture))) { ExpositionController.BeginMatchingTest(executingNameLabel.Text, participantComboBox.Text, markTextBox.Text[0], this); } else { /* do nothing*/ } } }
private void executeButton_Click(object sender, EventArgs e) { if (this.ValidateChildren(ValidationConstraints.Enabled)) { if (executingTypeLabel.Text.Equals("StroopTest")) { ExpositionController.BeginStroopTest(executingNameLabel.Text, participantTextBox.Text, markTextBox.Text[0], this); } else if (executingTypeLabel.Text.Equals("ReactionTest")) { ExpositionController.BeginReactionTest(executingNameLabel.Text, participantTextBox.Text, markTextBox.Text[0], this); } else if (executingTypeLabel.Text.Equals("Experimento")) { ExpositionController.BeginExperimentTest(executingNameLabel.Text, participantTextBox.Text, markTextBox.Text[0], this); } else { /* do nothing*/ } } else { MessageBox.Show("Algum campo não foi preenchido de forma correta."); } }