예제 #1
0
        public override bool IsRepresentingSame(TreeNodeTag theTreeNodeTag)
        {
            bool isRepresentingSame = false;

            ResultsCollectionTag theResultsCollectionTag = theTreeNodeTag as ResultsCollectionTag;

            if (theResultsCollectionTag != null)
            {
                if ((theResultsCollectionTag._Session == _Session) && (theResultsCollectionTag._ResultsCollectionName == _ResultsCollectionName))

                {
                    isRepresentingSame = true;
                }
            }

            return(isRepresentingSame);
        }
예제 #2
0
        public void UpdateResultsCollectionNode(TreeNode theResultsCollectionNode, string theNodeText, Dvtk.Sessions.Session theSession, ArrayList theResultsFiles)
        {
            // Set the text on this script file tree node.
            theResultsCollectionNode.Text = theNodeText;

            // Set the tag for this script file tree node.
            ResultsCollectionTag theResultsCollectionTag = new ResultsCollectionTag(theSession);
            theResultsCollectionTag._ResultsCollectionName = theNodeText;
            theResultsCollectionNode.Tag = theResultsCollectionTag;

            // Remove the old tree nodes that may be present under this node.
            theResultsCollectionNode.Nodes.Clear();

            // Add all results files not belonging to a script file to this tree node.
            foreach (string theResultFile in theResultsFiles)
            {
                TreeNode theResultsFileTreeNode = new TreeNode();
                theResultsCollectionNode.Nodes.Add(theResultsFileTreeNode);

                UpdateResultsFileNode(theResultsFileTreeNode, theSession, theResultFile);
            }
        }