예제 #1
0
파일: LMSchemaEx.cs 프로젝트: PavelPZ/REW
 public string dragItemId(gap_fill gf) {
   return varName + "_" + gf.varName;
 }
예제 #2
0
파일: LMSchemaEx.cs 프로젝트: PavelPZ/REW
 public override void finishTree(lm_scorm root) {
   base.finishTree(root);
   //maximalni delka classifications se stejnou group
   int max = 0;
   foreach (classification cl in LMScormObj.GetAll(root, delegate(object obj) { return (obj is classification) && ((classification)obj).group == group; }))
     max = Math.Max(cl.Items.Length, max);
   //prenes GapFills
   LMScormObj[] newGf = new LMScormObj[max + 1];
   for (int i = 0; i < Items.Length; i++)
     newGf[i + 1] = Items[i];
   for (int i = Items.Length; i < max; i++) {
     gap_fill gf = new gap_fill();
     gf.isFake = true;
     gf.id = id + i.ToString();
     newGf[i + 1] = gf;
   }
   //prvni radek tabulky:
   if (htmlTitleObj != null) newGf[0] = htmlTitleObj;
   else {
     html ht = new html();
     newGf[0] = ht;
     ht.localItems = localtitle;
   }
   table = new table();
   table.Items = newGf;
   table.border = true;
   table.col_header = true;
   table.grid = tableGrid.thin;
   table.finishTreeBeforeLocalize(root);
 }
예제 #3
0
파일: LMSchemaEx.cs 프로젝트: PavelPZ/REW
 public string getText(gap_fill gf) {
   return LMLiteral.getText(gf.localdrag_source == null ? gf.localcorrect : gf.localdrag_source).Replace(" ", "&nbsp;");
 }