Exemplo n.º 1
0
        public void Output(string destPath,
                           ref EvalueDigitSymbol valuator, ref FEITTimer timer)
        {
            StreamWriter sw = null;

            try
            {
                sw = File.CreateText(destPath);
                createHeader(ref sw);
                writeContent(ref sw, ref valuator, ref timer);
                sw.Close();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Exemplo n.º 2
0
        private void writeContent(ref StreamWriter sWriter,
                                  ref EvalueDigitSymbol valuator, ref FEITTimer timer)
        {
            string content = "";
            int    len     = valuator.mTF.Count;

            for (int i = 0; i < len; i++)
            {
                content  = "";
                content += "block" + (i + 1).ToString() + "\t";

                content += valuator.mTF[i].ToString() + "\t";

                content += valuator.mLeftInput[i].ToString() + "\t";
                content += valuator.mLeftAnswer[i].ToString() + "\t";
                content += timer.mTracker[i * 2].ToString() + "\t";

                content += valuator.mRightInput[i].ToString() + "\t";
                content += valuator.mRightAnswer[i].ToString() + "\t";
                content += timer.mTracker[i * 2 + 1].ToString();

                sWriter.WriteLine(content);
            }
        }
Exemplo n.º 3
0
        public PageDigitSymbol(MainWindow _mainWindow)
        {
            InitializeComponent();
            mMainWindow = _mainWindow;
            mSymbols    = new ArrayList();

            mLayout            = new LayoutDigitSymbol(this);
            mLayoutInstruction = new LayoutInstruction(ref mBaseCanvas);

            this.Focus();

            mElemFocus     = 0;
            mElemFocusLeft = true;
            mListener      = new ListenerDigitSymbol(this);

            mLoader     = new LoaderDigitSymbol();
            mLoadedNums = mLoader.GetContentDigits();

            mResHolder = new ResHolderDigitSymbol();

            mCurrentStep = DIGIT_SYMBOL_STEP.ready;

            mTimer = new FEITTimer();

            //undefined
            //DB

            /*if (!mMainWindow.mDB.TableExists(Names.DIGIT_SYMBOL_TABLENAME))
             * {
             *  mMainWindow.mDB.CreateDigiSymbolTable(LayoutDigitSymbol.ELEMENT_PER_PAGE * 5);
             * }*/

            _DigiPointPageOneControl = new DigiPointPageOneControl();

            _DigiPointPageTwoControl = new DigiPointPageTwoControl();
        }