Пример #1
0
        private Tuple <Clusterer, ClusteredReportResults, ReportColorScheme> GetClusteredResultsBackground(ILongWaitBroker longWaitBroker)
        {
            var clusterer = Clusterer.CreateClusterer(longWaitBroker.CancellationToken, BindingListSource.ClusteringSpec ?? ClusteringSpec.DEFAULT,
                                                      BindingListSource.ReportResults);

            if (clusterer == null)
            {
                return(null);
            }

            var results     = clusterer.GetClusteredResults();
            var colorScheme = ReportColorScheme.FromClusteredResults(longWaitBroker.CancellationToken, results);

            return(Tuple.Create(clusterer, results, colorScheme));
        }