Пример #1
0
        /// <summary>
        /// Current question
        /// </summary>
        /// <param name="flag"></param>
        /// <returns></returns>
        private TestingContent CurrentTesting(int flag)
        {
            TestingContent testingContent = new TestingContent();

            testingContent.ExamId = currentExamId;

            try
            {
                questionList = studentExamManage.CurrentTesting(testingContent);
            }
            catch (Exception ex)
            {
                string str = ex.Message;
                MessageBox.Show(str, "system error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            return(questionList[flag]);
        }