private void LikabilityRatingUserControlSubmitButtonClickEventAction(object obj, EventArgs e) { LogicEngine.LikabilityRatingTask.GetCurrentRound().LikabilityRatingIndex = LikabilityRatingUserControl.LikabilityRatingIndex; if (LogicEngine.LikabilityRatingTask.CanAdvanceToNextRound()) { LogicEngine.LikabilityRatingTask.AdvanceToNextRound(); ReadyLikabilityUserControl(); } else { LikabilityRatingUserControl.Enabled = false; ShowMessageBoxForFinishingAllTasks(); LogicEngine.SaveResults(DemographicsTab_TaskContainer.ToString()); } }
private void LikabilityRatingUserControlSubmitButtonClickEventAction(object obj, EventArgs e) { LogicEngine.LikabilityRatingTask.GetCurrentRound().LikabilityRatingIndex = LikabilityRatingUserControl.LikabilityRatingIndex; if (LogicEngine.LikabilityRatingTask.CanAdvanceToNextRound()) { LogicEngine.LikabilityRatingTask.AdvanceToNextRound(); ReadyLikabilityUserControl(); } else { LikabilityRatingUserControl.Enabled = false; MessageBox.Show("You have completed all tasks. Please see your proctor.", "CONGRATULATIONS!", MessageBoxButtons.OK); LogicEngine.SaveResults(DemographicsTab_TaskContainer.ToString()); } }