Пример #1
0
        public PromptTreeControl()
        {
            _treeItems = new List<ITreeItem>();

            _multiSelector = new MultiSelector(
                new RangeSelector(new TreeItemHierarchyFlattener())
                , new InverseSelector(new TreeItemHierarchyFlattener())
                , new Selector(new TreeItemHierarchyFlattener2()));
        }
Пример #2
0
        public PromptTreeControl()
        {
            _treeItems = new List <ITreeItem>();

            _multiSelector = new MultiSelector(
                new RangeSelector(new TreeItemHierarchyFlattener())
                , new InverseSelector(new TreeItemHierarchyFlattener())
                , new Selector(new TreeItemHierarchyFlattener2()));
        }
Пример #3
0
 public void Setup()
 {
     _flattener = new Mock<ITreeItemHierarchyFlattener>();
     _rangeSelector = new Mock<IRangeSelector>();
     _inverseSelector = new Mock<ISelector>();
     _regularSelector = new Mock<ISelector>();
     _selectionService = new MultiSelector(_rangeSelector.Object
         , _inverseSelector.Object
         , _regularSelector.Object);
 }