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)));
 }
 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)));
 }
 private ItemPickerDialogNavigationArguments(ItemPickerDialogProperties properties, IEnumerable <ISelectable> items, Action <ISelectable> action)
 {
     this.Properties = properties;
     this.Action     = action;
     this.Items      = items;
 }