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"); }
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"); }
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"); }
public Image getAnswer() { btCHSTRAS_091_File file = new btCHSTRAS_091_File(); return file.getImage(QuestionSubject); }