Ejemplo n.º 1
0
 /// <summary>
 /// Each form contains a reference field, which is hidden from the user
 /// this allows the calling application to set it in the background, this
 /// reference field is added to the database when answers are saved
 /// </summary>
 /// <returns></returns>
 private TextInput ReturnInternalReference()
 {
     TextInput txt = new TextInput();
     txt.title = "internalRef";
     txt.hidden = true;
     return txt;
 }
Ejemplo n.º 2
0
 private TextInput ReturnTextInput(DataRow dr)
 {
     TextInput txt = new TextInput();
     SetTitle(txt, dr);
     if (dr["readonly"].ToString().StringToBool()) { txt.@readonly = true; }
     if (dr["defaultText"].ToString() != String.Empty) { txt.@default = dr["defaultText"].ToString(); }
     return txt;
 }