Example #1
0
        public void PCATDataSaveReport()
        {
            List <QRecStdMultiChoice> report = new List <QRecStdMultiChoice>();

            int indexCursor = 0;

            for (int i = 0; i < mUserAnswer.Count; i++)
            {
                QRecStdMultiChoice single = new QRecStdMultiChoice();

                single.Target = mDoList[indexCursor];
                indexCursor++;

                for (int j = 0; j < 8; j++)
                {
                    single.SS.Add(mDoList[indexCursor]);
                    indexCursor++;
                }

                single.CorrectAnswer = mDoList[indexCursor];
                indexCursor++;

                single.UserAnswer = mUserAnswer[i];

                report.Add(single);
            }

            mMainWindow.mDB.AddAssoRecord(report,
                                          mMainWindow.mUserID, Names.GRAPH_ASSO_TABLENAME);
        }
Example #2
0
        public void PCATDataSaveReport()
        {
            List <QRecStdMultiChoice> report = new List <QRecStdMultiChoice>();

            for (int i = 0; i < SHEET_LENGTH; i++)
            {
                QRecStdMultiChoice rec = new QRecStdMultiChoice();
                int selCount           = mItems[i].Weights.Count;

                rec.SS     = mItems[i].Selections;
                rec.Target = mItems[i].Casual;

                for (int j = 0; j < selCount; j++)
                {
                    rec.SWeight.Add(mItems[i].Weights[j].ToString());
                }

                rec.RT         = mResults[i].RT;
                rec.UserAnswer = mResults[i].SelectedItemIndex.ToString();
            }

            mMainWindow.mDB.AddVocSimiRecord(report, mMainWindow.mUserID, Names.VOCAB_TABLENAME);
        }