public PerformanceResult RunTest() { var result = new PerformanceResult(); if (MainViewModel.Current == null) { throw new Exception("You must first select a File!"); } var stopwatch = new Stopwatch(""); try { var results = new List <EventPerformanceResult>(); DocumentMapService.GetLines(MainViewModel.Current.Model.File, results, out result.TotalEvents); result.Result = new SortableBindingList <EventPerformanceResult>(results); } finally { stopwatch.Stop(); if (stopwatch.Duration != null) { result.TotalDuration = stopwatch.Duration.Value; } } return(result); }
public override sealed List <DocumentEntry> GetModel() { DocumentMapService.BuildDocumentMap(_current); return(_current.DocumentMap); }