Пример #1
0
        protected override TestTreeNode CreateTreeNode(string path, string label, int level, bool isFolder, bool isActive, bool isHidden, bool isCollapsed, bool isChecked, TestTreeData?treeData, bool isContainer)
        {
            if (traceLogging)
            {
                Logger.Trace(
                    "CreateTreeNode(path: {0}, label: {1}, level: {2}, isFolder: {3}, " +
                    "isActive: {4}, isHidden: {5}, isCollapsed: {6}, isChecked: {7}, treeData: {8})", path, label,
                    level, isFolder, isActive, isHidden, isCollapsed, isChecked, treeData?.ToString() ?? "[NULL]");
            }

            TestTreeListener.CreateTreeNode(path, label, level, isFolder, isActive, isHidden, isCollapsed, isChecked,
                                            treeData);

            var testTreeNode = new TestTreeNode {
                Path        = path,
                Label       = label,
                Level       = level,
                CheckState  = isChecked ? CheckState.Checked : CheckState.Empty,
                IsActive    = isActive,
                IsFolder    = isFolder,
                IsCollapsed = isCollapsed,
                IsHidden    = isHidden,
                TreeData    = treeData ?? TestTreeData.Default
            };

            CreatedTreeNodes.Add(testTreeNode);

            return(testTreeNode);
        }
Пример #2
0
 protected override void SetNodeIcon(TestTreeNode node)
 {
     if (traceLogging)
     {
         Logger.Trace("Set NodeIcon");
     }
     TestTreeListener.SetNodeIcon(node);
 }
Пример #3
0
 protected override void AddCheckedNode(TestTreeNode node)
 {
     if (traceLogging)
     {
         Logger.Trace("AddCheckedNode");
     }
     TestTreeListener.AddCheckedNode(node);
 }
Пример #4
0
 protected override IEnumerable <string> GetCollapsedFolders()
 {
     if (traceLogging)
     {
         Logger.Trace("GetCollapsedFolders");
     }
     return(TestTreeListener.GetCollapsedFolders());
 }
Пример #5
0
 public override IEnumerable <string> GetCheckedFiles()
 {
     if (traceLogging)
     {
         Logger.Trace("GetCheckedFiles");
     }
     return(TestTreeListener.GetCheckedFiles());
 }
Пример #6
0
 protected override void OnClear()
 {
     if (traceLogging)
     {
         Logger.Trace("OnClear");
     }
     TestTreeListener.OnClear();
 }