public ParseSelectablePagedListComponent(IPagingTrait <Selectable <TResult> > paging) { Parse = value => { return((TList)paging.Paging.PagedChoices.SelectMany(x => x.Value).Where(x => x.IsSelected).Select(x => x.Item).ToList()); }; }
public DisplayPagedListChoices(IPagingTrait <TResult> paging, IConvertToStringTrait <TResult> convert, IConsole console) { _paging = paging; _convert = convert; _console = console; }
public DisplaySelectablePagedChoices(IPagingTrait <Selectable <TResult> > paging, IConvertToStringTrait <TResult> convert, IConsole console) { _paging = paging; _convert = convert; _console = console; }
public static void RenderRawChoices <TResult>(this IRenderChoicesTrait <TResult> trait, IPagingTrait <TResult> paging, IConvertToStringTrait <TResult> convert, IConsole console) { trait.RenderChoices = new DisplaPagedRawChoices <TResult>(paging, convert, console); }
public static void RenderChoices <TResult>(this IRenderChoicesTrait <TResult> trait, IPagingTrait <Selectable <TResult> > paging, IConvertToStringTrait <TResult> convert, IConsole console) { trait.RenderChoices = new DisplaySelectablePagedChoices <TResult>(paging, convert, console); }
public static void Parse <TResult>(this IParseTrait <Dictionary <int, List <Selectable <TResult> > >, List <TResult> > trait, IPagingTrait <Selectable <TResult> > paging) { trait.Parse = new ParseSelectablePagedListComponent <List <TResult>, TResult>(paging); }
public static void Paging <TResult>(this IPagingTrait <TResult> trait, List <TResult> chocies, int pageSize) { trait.Paging = new PagingComponent <TResult>(chocies, pageSize); }