Esempio n. 1
0
        private static GroupingDefinitionItem addGrouping <T>(string displayName) where T : GroupingDefinition
        {
            var groupingDefintion = new GroupingDefinitionItem(typeof(T), displayName);

            _allGroupings.Add(groupingDefintion, groupingDefintion.DisplayName);
            return(groupingDefintion);
        }
Esempio n. 2
0
        private IGroupingDefinitionPresenter retrieveGroupingPresenter(GroupingDefinitionItem groupingDefinitionItem)
        {
            if (!_presenterCache.Contains(groupingDefinitionItem))
            {
                var presenter = _groupingDefinitionPresenterMapper.MapFrom(groupingDefinitionItem);
                presenter.StatusChanged += groupingDefinitionPresenterChanged;
                _presenterCache[groupingDefinitionItem] = presenter;
                presenter.InitializeWith(_populationAnalysisField, _populationDataCollector);
                presenter.StartCreate();
            }

            return(_presenterCache[groupingDefinitionItem]);
        }