示例#1
0
        public void Test_TestEnded(object sender, TestEndSummaryEventArgs e)
        {
            pnlSummary.BringToFront();

            foreach (SummaryItem listItem in e.TestSummary)
            {
                ListViewItem i = new ListViewItem();
                i.Text = listItem.QuestionNumber.ToString();
                ListViewItem.ListViewSubItem s1 = new ListViewItem.ListViewSubItem();
                s1.Text = listItem.CorrectAnswer;
                i.SubItems.Add(s1);
                ListViewItem.ListViewSubItem s2 = new ListViewItem.ListViewSubItem();
                s2.Text = listItem.SubmittedAnswer;
                i.SubItems.Add(s2);
                ListViewItem.ListViewSubItem s3 = new ListViewItem.ListViewSubItem();
                s3.Text = listItem.Feedback;
                i.SubItems.Add(s3);

                lvwSummary.Items.Add(i);
            }

            lblAnlysis.Text = e.Analysis;
        }
示例#2
0
文件: Test.cs 项目: swssr/TakeTestUI
        protected virtual void OnEnd()
        {
            TestEndSummaryEventArgs e = new TestEndSummaryEventArgs(m_summary, GetAnalysis());

            TestEnded(this, e);
        }