コード例 #1
0
 public static ItemPickerDialogNavigationArguments New <T>(ItemPickerDialogProperties properties, IEnumerable <T> items, Action <T> action)
     where T : ISelectable
 {
     return(new ItemPickerDialogNavigationArguments(properties, items.Cast <ISelectable>(), x => action((T)x)));
 }
コード例 #2
0
 public static ItemPickerDialogNavigationArguments New(ItemPickerDialogProperties properties, IEnumerable <string> items, Action <string> action)
 {
     return(new ItemPickerDialogNavigationArguments(properties, items.Select(s => new SelectableString(s)), x => action(x.Name)));
 }
コード例 #3
0
 private ItemPickerDialogNavigationArguments(ItemPickerDialogProperties properties, IEnumerable <ISelectable> items, Action <ISelectable> action)
 {
     this.Properties = properties;
     this.Action     = action;
     this.Items      = items;
 }