public override void Start()
 {
     base.Start();
     Items = new List<Item>();
     for (var j = 0; j < 20; j++){
         var item = new Item { Description = "Item #" + j };
         var itemValues = new List<ItemValue>();
         for (var i = 0; i < 5; i++) {
             var itemValue = new ItemValue { Value = "Option " + i };
             itemValues.Add(itemValue);
         }
         item.Values = itemValues;
         Items.Add(item);
     }
 }
Esempio n. 2
0
 public Item()
 {
     Value = new ItemValue { Value = "[Choose value]" };
 }