public static async Task<ListPickerBox> ShowAsync(string header, IList items, IList selectedItems, bool minOneSelected = true, bool showSelectAllButton = false) { var popup = new ListPickerBox(header, items ?? new List<object>(), selectedItems ?? new List<object>(), minOneSelected, showSelectAllButton); await PopupHelper.ShowVerticalDialogAsync(popup, false); return popup; }
public static void ShowSingle(IList items, object selectedItem, string title, Action <ListPickerBox> completed) { var popup = new ListPickerBox(items, selectedItem != null ? new List <object> { selectedItem } : null, true, title); Show(popup, true, true, x => completed((ListPickerBox)x)); }
public static async Task <ListPickerBox> ShowAsync(string header, IList items, IList selectedItems, bool minOneSelected = true, bool showSelectAllButton = false) { var popup = new ListPickerBox(header, items ?? new List <object>(), selectedItems ?? new List <object>(), minOneSelected, showSelectAllButton); await PopupHelper.ShowVerticalDialogAsync(popup, false); return(popup); }
public static void Show(IList items, IList selectedItems, string title, bool minOneSelected, bool showSelectAllButton, Action <ListPickerBox> completed) { var popup = new ListPickerBox(items, selectedItems, false, title, minOneSelected, showSelectAllButton); Show(popup, true, true, x => completed((ListPickerBox)x)); }
public static void Show(IList items, IList selectedItems, Action<ListPickerBox> completed) { var popup = new ListPickerBox(items, selectedItems); Show(popup, true, true, x => completed((ListPickerBox)x)); }
public static void ShowSingle(IList items, object selectedItem, string title, Action<ListPickerBox> completed) { var popup = new ListPickerBox(items, selectedItem != null ? new List<object> { selectedItem } : null, true, title); Show(popup, true, true, x => completed((ListPickerBox)x)); }
public static void Show(IList items, IList selectedItems, string title, bool minOneSelected, bool showSelectAllButton, Action<ListPickerBox> completed) { var popup = new ListPickerBox(items, selectedItems, false, title, minOneSelected, showSelectAllButton); Show(popup, true, true, x => completed((ListPickerBox)x)); }