Example #1
0
        private void showInstruction()
        {
            clearAll();

            CompCentralText ct = new CompCentralText();

            ct.mText.Height = 125;
            ct.PutTextToCentralScreen("    呈现完12对词后,会有一个记忆测试,给出前面\r\n一个词,要求你点选出后面一个词。比如给出“太阳”,\r\n你就 …",
                                      "KaiTi", 32, ref amBaseCanvas, -250, Color.FromRgb(255, 255, 255));

            CompChinese9Cells cells = new CompChinese9Cells(this);

            String[] str = new String[] { "行", "地", "气", "热", "星", "月", "亮", "球", "圆" };
            cells.SetCharas(str);
            cells.SetQuest("太阳");
            cells.mfConfirm = instructionInteractionJudge;
            amBaseCanvas.Children.Add(cells);
            Canvas.SetTop(cells, FEITStandard.PAGE_BEG_Y + (FEITStandard.PAGE_HEIGHT - 515) / 2 + 75);
            Canvas.SetLeft(cells, FEITStandard.PAGE_BEG_X + (FEITStandard.PAGE_WIDTH - 800) / 2);

            CompCentralText ct2 = new CompCentralText();

            ct2.PutTextToCentralScreen("请用鼠标依次点选出“月”、“亮”二字作答 \r\n 然后点击“确定”进入下一页。",
                                       "KaiTi", 32, ref amBaseCanvas, 300, Color.FromRgb(0, 255, 0));
        }
Example #2
0
        private void show9CellsPad()
        {
            if (mCompHold != null)
            {
                mPage.amBaseCanvas.Children.Remove(mCompHold);
            }
            mCompHold = new CompChinese9Cells(mPage);

            mCompHold.SetQuest(mSource[mCurAt].Pair.First);
            mCompHold.SetCharas(mSource[mCurAt].Chars9);
            mCompHold.mfConfirm = confirmCheckNext;
            mPage.amBaseCanvas.Children.Add(mCompHold);
            Canvas.SetTop(mCompHold, FEITStandard.PAGE_BEG_Y + (FEITStandard.PAGE_HEIGHT - 515) / 2 + 60);
            Canvas.SetLeft(mCompHold, FEITStandard.PAGE_BEG_X + (FEITStandard.PAGE_WIDTH - 800) / 2);

            mPage.mOrders.Add(mCompHold.mSelectedOrder);
            mWatch.Start();

            mCountDown.Visibility = System.Windows.Visibility.Visible;

            if (!mPage.mFreeze)
            {
                mCountDown.Start();
            }
        }
Example #3
0
        private void instructionInteractionJudge(object obj)
        {
            CompChinese9Cells compCell = (CompChinese9Cells)obj;

            if (compCell.GetCharas().Equals("月亮"))
            {
                next();
            }
        }
Example #4
0
        void confirmCheckNext(object obj)
        {
            CompChinese9Cells cc9 = (CompChinese9Cells)obj;

            if (cc9.mSelectedOrder.Count == 2)
            {
                next();
            }
        }