private void loadIniPage() // 首页
        {
            mLayoutInstruction.addTitle(50, 0, "人像特点联系回忆", "KaiTi_GB2312", 48, Color.FromRgb(255, 255, 255));
            mLayoutInstruction.addTitle(113, 110, "Portrait Memory", "", 28, Color.FromRgb(255, 255, 255));
            mLayoutInstruction.addInstruction(200, 10, FEITStandard.PAGE_WIDTH / 100 * 68, 400,
                                              "    本测验将呈现一些人像,同时向你介绍他姓什么,做什么工作,爱好什么。请将人像和他的三个特点联系起来记忆。 \r    看完全部人像后,会有一个记忆测试,当再看到每一张人像时,请点选出他的姓氏、工作和爱好。 ", "Kaiti_GB2312", 30, Color.FromRgb(255, 255, 255));

            chageNextLabel();
        }
Exemple #2
0
        private void loadIniPage() // 首页
        {
            mLayoutInstruction.addTitle(50, 0, "折纸测试", "KaiTi_GB2312", 48, Color.FromRgb(255, 255, 255));
            mLayoutInstruction.addTitle(113, 95, "Paper Folding", "", 28, Color.FromRgb(255, 255, 255));
            mLayoutInstruction.addInstruction(200, 0, FEITStandard.PAGE_WIDTH / 100 * 68, 350,
                                              "      本测验需要在头脑中进行如下操作:按要求折叠一张正方形的纸,然后用铅笔在叠好的纸上扎一个孔,最后把纸展开。要求你想象展开后的纸上面会有几个孔,以及它们正确的位置。\n\r     (点击 “下一页” 看例题)"
                                              , "Kaiti_GB2312", 30, Color.FromRgb(255, 255, 255));

            chageNextPage();
        }
Exemple #3
0
        private void loadInitPage()
        {
            //  mLayoutInstruction = new LayoutInstruction(ref mBaseCanvas);

            mLayoutInstruction.addTitle(50, 0, "魔方旋转", "KaiTi_GB2312", 48, Color.FromRgb(255, 255, 255));
            mLayoutInstruction.addTitle(113, 92, "Cube Rotation", "", 28, Color.FromRgb(255, 255, 255));
            mLayoutInstruction.addInstruction(200, 2, 600, 500, "    本测验需要你在头脑中进行如下操作: " + "    按要求对四格魔方进行旋转,要求你想象旋转后魔方上顶面的情况。\n\r        (点击 “下一页” 看例题)"
                                              , "KaiTi_GB2312", 30, Color.FromRgb(255, 255, 255));


            chageNextPage();
        }
Exemple #4
0
        private void loadTitlePage()
        {
            ClearAll();
            mLayoutInstruction.addTitle(70, 0, "操作广度", "KaiTi", 52, Color.FromRgb(255, 255, 255));
            mLayoutInstruction.addTitle(133, 105, "Operation Span", "Batang", 32, Color.FromRgb(255, 255, 255));
            mLayoutInstruction.addInstruction(240, 0, 600, 200,
                                              "请在做心算题的同时,记住随后出现的属相(十二生肖)",
                                              "KaiTi",
                                              42, Color.FromRgb(255, 255, 255));

            mCurrentStatus = PageAttr.practiseChar;

            //test////////////////////////////////////////////////////for stage control
            //mCurrentStatus = PageAttr.instructCompreh;
            //test above//////////////////////////////////////////////

            //new FEITClickableScreen(ref mBaseCanvas, nextStep);
            CompBtnNextPage btn = new CompBtnNextPage("下一页");

            btn.Add2Page(mBaseCanvas, FEITStandard.PAGE_BEG_Y + 470);
            btn.mfOnAction = nextStep;
        }
Exemple #5
0
        public void LayStartPage()
        {
            mPage.clearAll();

            LayoutInstruction li = new LayoutInstruction(ref mPage.amCanvas);

            li.addTitle(40, 0, "图形联想记忆", "KaiTi", 50, System.Windows.Media.Color.FromRgb(255, 255, 255));
            li.addInstruction(200, 0, 800, 300,
                              "    待会儿你会看见一些图形对,左边图形是一个小动物 (十二生肖),右边是一个无意义图形。你需要把两个图形联系起来进行记忆," +
                              "在学习完这些图形对后我们将进行记忆测验。准备好了吗?点击鼠标继续。", "KaiTi", 40,
                              System.Windows.Media.Color.FromRgb(255, 255, 255));

            FEITClickableScreen fcs =
                new FEITClickableScreen(ref mPage.amCanvas, LayStartPage2);
        }
Exemple #6
0
        private void showInstruction()
        {
            mPage.ClearAll();

            LayoutInstruction li = new LayoutInstruction(ref mPage.mBaseCanvas);

            //li.addTitle(200, 0, "", "KaiTi", 50, Color.FromRgb(255, 255, 255));
            li.addInstruction(240, 0, 570, 200, " 下面先来练习一下记忆属相",
                              "KaiTi", 40, Color.FromRgb(255, 255, 255));

            mfNext = showAnimal;

            CompBtnNextPage btn = new CompBtnNextPage("开始练习");

            btn.Add2Page(mPage.mBaseCanvas, FEITStandard.PAGE_BEG_Y + 470);
            btn.mfOnAction = oneSecBlackScreen;
        }
Exemple #7
0
        public void SetReport(long RT, float CorrectRate)
        {
            mPage.clearAll();
            LayoutInstruction instruction = new LayoutInstruction(ref mPage.amCanvas);

            if (RT != -1)
            {
                instruction.addInstruction(250, 0, 800, 300,
                                           "    你的平均反应时是:" + RT.ToString() + "毫秒;你的正确率是:" +
                                           (CorrectRate * 100).ToString("0.0") + "%,按空格键继续。",
                                           "KaiTi", 38, System.Windows.Media.Color.FromRgb(255, 255, 255));
            }
            else
            {
                instruction.addTitle(175, 0, "你没有输入,按空格键继续下一组", "KaiTi", 38,
                                     System.Windows.Media.Color.FromRgb(255, 255, 255), false);
            }
        }
        private void showInstruction()
        {
            mPage.ClearAll();

            LayoutInstruction li = new LayoutInstruction(ref mPage.mBaseCanvas);

            //li.addTitle(200, 0, "算式练习", "KaiTi", 50, Color.FromRgb(255, 255, 255));
            li.addInstruction(200, 0, 638, 400,
                              "下面再来练习一下心算\r\n在完成每一心算题后请尽快单击         \r\n然后判断给出的心算答案是否正确",
                              "KaiTi", 40, Color.FromRgb(255, 255, 255));

            CompBtnNextPage btn = new CompBtnNextPage("算好了");

            btn.Add2Page(mPage.mBaseCanvas, FEITStandard.PAGE_BEG_Y + 290, 330);
            btn.mfOnAction = doNothing;

            mfNext = showEquation;

            CompBtnNextPage btnGO = new CompBtnNextPage("开始练习");

            btnGO.Add2Page(mPage.mBaseCanvas, FEITStandard.PAGE_BEG_Y + 490);
            btnGO.mfOnAction = oneSecBlackScreen;
        }
 private void layoutPointOut()
 {
     _LayoutInstruction.addInstruction(250, 80, FEITStandard.PAGE_WIDTH / 100 * 98, 200,
                                       "             请又好又快地完成任务,\n\r" + "   如果按错键,不能修改,继续往下做。", "Kaiti", 35, Color.FromRgb(255, 255, 255));
     _LayoutInstruction.addTitle(500, 20, "(空格键继续)", "KaiTi", 36, Color.FromRgb(255, 255, 255));
 }
Exemple #10
0
        public ExamplePage()
        {
            InitializeComponent();
            BaseCanvas.Width  = (int)System.Windows.SystemParameters.PrimaryScreenWidth;
            BaseCanvas.Height = (int)System.Windows.SystemParameters.PrimaryScreenHeight;
            mbordercontrol    = new PaperBorderControl();

            mBorders = new List <Border>();

            mImagecontrol = new PaperImageControl();

            mImages = new List <Image>();

            mLayoutInstruction = new LayoutInstruction(ref BaseCanvas);

            mLayoutInstruction.addInstruction(-FEITStandard.PAGE_BEG_Y, -FEITStandard.PAGE_BEG_X, FEITStandard.PAGE_WIDTH / 100 * 81, 140,
                                              "    横线上方呈现了折纸和扎孔(扎透了所有的层)的过程,横线下方给出了5种纸被展开后的情况,其中只有一个是正确的答案。"
                                              , "Kaiti_GB2312", 30, Color.FromRgb(255, 255, 255));

            //窗口布局



            Canvas.SetLeft(border1, actual_x + 55);
            Canvas.SetTop(border1, actual_y + 320);

            Canvas.SetLeft(label1, actual_x + 609);//正确答案
            Canvas.SetTop(label1, actual_y + 595);

            Canvas.SetLeft(label2, actual_x + 214);//请选择正确答案
            Canvas.SetTop(label2, actual_y + 500);

            Canvas.SetLeft(label3, actual_x + 294);//正确答案
            Canvas.SetTop(label3, actual_y + 270);

            Canvas.SetLeft(label4, actual_x + 433);//正确答案
            Canvas.SetTop(label4, actual_y + 270);


            additem();//练习题目



            //
            for (int i = 0; i < 5; i++)
            {
                //border
                b = mbordercontrol.GenBorder(102, 94);
                mBorders.Add(b);
                this.BaseCanvas.Children.Add(b);
                Canvas.SetTop(b, actual_y + bordertop);
                Canvas.SetLeft(b, actual_x + borderleft);
                borderleft = borderleft + borderadd;

                //image
                string temp = (i + 1).ToString();
                im         = new Image();
                im.Stretch = Stretch.Fill;

                System.Drawing.Image  pie  = System.Drawing.Image.FromFile("Paper\\PaperRes\\Example\\O" + temp + ".bmp");
                System.Drawing.Bitmap bmpe = new System.Drawing.Bitmap(pie);

                IntPtr hBitmape = bmpe.GetHbitmap();
                System.Windows.Media.ImageSource WpfBitmape = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(hBitmape, IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromWidthAndHeight(82, 74));//FromEmptyOptions() 源图像大小
                im.Source = WpfBitmape;
                //im = mImagecontrol.GetImage(82,74);
                //BitmapImage bitim = new BitmapImage();
                //bitim.BeginInit();
                //bitim.UriSource = new Uri("/PCAT;component/Images/O" + temp + ".bmp", UriKind.Relative);
                //bitim.EndInit();
                //im.Stretch = Stretch.Fill;
                //im.Source = bitim;
                mImages.Add(im);
                this.BaseCanvas.Children.Add(im);
                Canvas.SetTop(im, actual_y + imagetop);
                Canvas.SetLeft(im, actual_x + imageleft);
                imageleft = imageleft + imageadd;
                //Event

                im.MouseDown  += new MouseButtonEventHandler(im_MouseDown);
                im.MouseEnter += new MouseEventHandler(im_MouseEnter);
                im.MouseLeave += new MouseEventHandler(im_MouseLeave);
            }
        }
Exemple #11
0
 private void layoutPointOut()
 {
     _LayoutInstruction.addInstruction(250, 80, FEITStandard.PAGE_WIDTH / 100 * 98, 300,
                                       "        请将手放在" + " \"√\"" + ", " + "\"X\"" + ", " + "\"—\"" + " 键上,\n\r" + "", "Kaiti", 35, Color.FromRgb(255, 255, 255));
     _LayoutInstruction.addTitle(450, 20, "(按空格键开始正式测验)", "KaiTi", 36, Color.FromRgb(255, 255, 255));
 }
Exemple #12
0
 private void layoutPointOut()
 {
     _LayoutInstruction.addInstruction(200, 0, FEITStandard.PAGE_WIDTH / 100 * 98, 100,
                                       "    请在保证正确的前提下尽快按键,/n/r" + "中途按错键不用修改,继续往下做。", "Kaiti", 35, Color.FromRgb(255, 255, 255));
     _LayoutInstruction.addTitle(300, 0, "(空格键继续)", "KaiTi", 48, Color.FromRgb(255, 255, 255));
 }