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