コード例 #1
0
 public btCHSTRAS_091_Fault(btSHFUserLogin shfUserLogin,
     btSHFUnitPractice shfUnitPratice, int courseType, int itemNumber)
     : base(shfUnitPratice, courseType)
 {
     item = new Common.btCHSTRAS_091_Item(shfUserLogin, shfUnitPratice);
     unit = new Common.btCHSTRAS_091_Unit(getSize(), shfUserLogin, shfUnitPratice);
     file = new btCHSTRAS_091_File();
 }
コード例 #2
0
 public btCHSTRAS_091_Memory(btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice, int courseType, int itemNumber)
     : base(shfUnitPratice, courseType)
 {
     item = new Common.btCHSTRAS_091_Item(shfUserLogin, shfUnitPratice);
     unit = new Common.btCHSTRAS_091_Unit(getSize(), shfUserLogin, shfUnitPratice);
     file = new btCHSTRAS_091_File();
     open = file.getImage("open.png");
     close = file.getImage("close.png");
 }
コード例 #3
0
 public String disForeword()
 {
     String condition = "ProgramId=" + pratice.UnitID;
     btCHSTRAS_091_Database database = new btCHSTRAS_091_Database();
     btCHSTRAS_091_File file = new btCHSTRAS_091_File();
     database.query("E_SHFPages", new String[] { "TextInfo" }, condition, null);
     String textInfo = database.moveToNextString()[0];
     return file.getText(textInfo);
 }
コード例 #4
0
 public btCHSTRAS_091_Puzzle(btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice, int courseType, int itemNumber)
     : base(shfUnitPratice, courseType)
 {
     this.itemNumber = itemNumber;
     file = new btCHSTRAS_091_File();
     item = new Common.btCHSTRAS_091_Item(shfUserLogin, shfUnitPratice);
     unit = new Common.btCHSTRAS_091_Unit(getSize(), shfUserLogin, shfUnitPratice);
     finger = file.getImage("finger.png");
 }
コード例 #5
0
 public btCHSTRAS_091_Link(btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice, int courseType, int arrayLength)
 {
     this.arrayLength = arrayLength;
     this.shfUserLogin = shfUserLogin;
     this.shfUnitPratice = shfUnitPratice;
     file = new btCHSTRAS_091_File();
     question = new btCHSTRAS_091_Question(shfUnitPratice, courseType);
     totalNumber = question.getSize();
     unit = new btCHSTRAS_091_Unit(totalNumber, shfUserLogin, shfUnitPratice);
     item = new btCHSTRAS_091_Item(shfUserLogin, shfUnitPratice);
     textNames = new String[arrayLength];
     imageNames = new String[arrayLength];
 }
コード例 #6
0
 public btCHSTRAS_091_Teach(btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice)
 {
     this.shfUserLogin = shfUserLogin;
     file = new btCHSTRAS_091_File();
     database = new btCHSTRAS_091_Database();
     btCHSTRAS_091_Base bt = new btCHSTRAS_091_Base();
     String[] columns = new String[] { "ProgramID", "PageID" };
     String where = "ProgramID=" + bt.getPagesID(shfUnitPratice);
     readerPages = database.query("E_SHFPages", columns, where, null);
     total = database.getSize();
     itemLearned = -1;
     itemCurrent = -1;
     arrayList = new ArrayList();
     startTime = DateTime.Now;
 }
コード例 #7
0
 public btCHSTRAS_091_Question(btSHFUnitPractice unitPractice,
     int courseType)
 {
     btCHSTRAS_091_Base bt = new btCHSTRAS_091_Base();
     file = new btCHSTRAS_091_File();
     int pageID = bt.getPagesID(unitPractice);
     database = new btCHSTRAS_091_Database();
     String where = "QuestionType=" + pageID + " AND " +
         "QuestionTag=\'" + courseType + "\'";
     String[] columns = new String[] {"QuestionID", "QuestionDiff",
         "QuestionScore", "AverageTime", "QuestionSubject",
         "Question","QuestionSolution", "QuestionAnswer"};
     reader = database.query("E_SHFQuestions", columns, where, null);
     angry = file.getImage("angry.gif");
     happy = file.getImage("happy.gif");
 }
コード例 #8
0
        public uiCHSTRAS_091_Link(Form form, SHF_BT.btSHFUserLogin shfUserLogin,
            SHF_BT.btSHFUnitPractice shfUnitPratice, int courseType)
            : base(form, shfUserLogin, shfUnitPratice, courseType)
        {
            InitializeComponent();

            pictureBox = new PictureBox[] { pictureBox1, pictureBox2, pictureBox3, pictureBox4 };
            label = new Label[] { label1, label2, label3, label4 };
            itemNumber = label.Length;
            bt = new btCHSTRAS_091_Link(shfUserLogin, shfUnitPratice, courseType, itemNumber);
            totalNumber = bt.getSize();
            status = new btCHSTRAS_091_Link_Status(itemNumber);
            file = new btCHSTRAS_091_File();
            answeredNumber--;//由于点击两次下一个按钮才会到下一题,会多记一次。
            getPoint();
            next();
        }
コード例 #9
0
 public uiCHSTRAS_091_CourseEdit()
 {
     InitializeComponent();
     file = new btCHSTRAS_091_File();
     edit = new btCHSTRAS_091_CourseEdit();
     checkBox = new CheckBox[] { checkBox1, checkBox2, checkBox3, checkBox4,
         checkBox5, checkBox6, checkBox7, checkBox8};
     pictureBox = new PictureBox[]{pictureBox1, pictureBox2, pictureBox3,
         pictureBox4, pictureBox8, pictureBox7, pictureBox6, pictureBox5};
     textBox = new TextBox[]{textBox1, textBox2, textBox3, textBox25, textBox6,
         textBox5, textBox4, textBox28, textBox9, textBox8, textBox7, textBox29,
         textBox12, textBox11, textBox10, textBox30, textBox24, textBox23, textBox22,
         textBox31, textBox21, textBox20, textBox19, textBox32, textBox18, textBox17,
         textBox16, textBox33, textBox15, textBox14, textBox13, textBox34};
     button = new Button[] { button1, button2, button3, button4,
         button8, button7, button6, button5 };
 }
コード例 #10
0
 public Image getAnswer()
 {
     btCHSTRAS_091_File file = new btCHSTRAS_091_File();
     return file.getImage(QuestionSubject);
 }