private TreeViewData(HistogrammerTreeViewState treeViewState, HistogrammerColumnHeaderState columnHeaderState)
 {
     TreeViewState     = treeViewState;
     ColumnHeaderState = columnHeaderState;
     ColumnHeader      = new HistogrammerColumnHeader(columnHeaderState);
     TreeView          = new HistogrammerTreeView(treeViewState, ColumnHeader);
 }
        public static TreeViewData Create(HistogrammerTreeViewState treeViewState,
                                          HistogrammerColumnHeaderState columnHeaderState, List <SearchResult> results)
        {
            TreeViewData treeViewData = new TreeViewData(treeViewState, columnHeaderState);

            treeViewData.TreeView.Initialize(results);
            return(treeViewData);
        }
 private void CreateTreeViews()
 {
     foreach (KeyValuePair <object, List <SearchResult> > result in valueToSearchResults)
     {
         HistogrammerColumnHeaderState columnHeaderState = HistogrammerColumnHeaderState.Create();
         HistogrammerTreeViewState     treeViewState     = new HistogrammerTreeViewState();
         TreeViewData treeViewData = TreeViewData.Create(treeViewState, columnHeaderState, result.Value);
         valueToTreeViewData.Add(result.Key, treeViewData);
     }
 }