private IEnumerable <CompositeSelectableVm> ComputeModules(IEnumerable <LogEntryVm> arg) { var allFiles = AllEntries.Select(le => le.FileName).Distinct().Select(m => new SelectableVm(m, true)).OrderBy(m => m.Name); var allModules = allFiles.GroupBy(x => ModuleClassifier.GetModuleForFile(x.Name)).Select(x => new CompositeSelectableVm(x.Key, true, x.Select(y => y))); return(allModules.ToList()); }
private IEnumerable <SelectableVm> ComputeFilter(IEnumerable <LogEntryVm> arg, Func <LogEntryVm, string> selector) { return(AllEntries.Select(selector).Distinct().Select(m => new SelectableVm(m, true)).OrderBy(m => m.Name).ToList()); }
private IEnumerable <SelectableVm> ComputeLevels(IEnumerable <LogEntryVm> arg) { return(AllEntries.Select(le => le.Level).Distinct().Select(m => new SelectableVm(m, true)).OrderBy(m => m.Name).ToList()); }