예제 #1
0
 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);
     }
 }
예제 #2
0
 public Item()
 {
     Value = new ItemValue { Value = "[Choose value]" };
 }