Example #1
0
 public ListElement(UT_TableStringSet tbl, StringListId id)
 {
     Id      = id;
     Strings = tbl.GetStrings(id.ToString());
     if (Strings != null && Strings.Count == 0)      // to avoid confusion, if we have nothing, we get null
     {
         Strings = null;
     }
 }
Example #2
0
 public string GetRandomString(StringListId id)
 {
     return(_stringLists[(int)id].GetRandom());
 }