Exemple #1
0
        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());
        }
Exemple #2
0
 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());
 }
Exemple #3
0
 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());
 }