예제 #1
0
 public static IEnumerable <SelectListItem <bool?> > GetTrueFalseItems(string trueLabel, string falseLabel)
 {
     return(new[] { SelectListItem.Create <bool?>(true, trueLabel), SelectListItem.Create <bool?>(false, falseLabel) });
 }
 /// <summary>
 /// Creates a change based list item.
 /// </summary>
 public static ChangeBasedListItem <IdType> Create <IdType>(IdType id, string label, Action <bool> changeHandler)
 {
     return(new ChangeBasedListItem <IdType>(SelectListItem.Create(id, label), changeHandler));
 }