コード例 #1
0
        public override bool IsRepresentingSame(TreeNodeTag theTreeNodeTag)
        {
            bool isRepresentingSame = false;

            ResultsFileTag theResultsFileTag = theTreeNodeTag as ResultsFileTag;

            if (theResultsFileTag != null)
            {
                if ((theResultsFileTag._Session == _Session) && (theResultsFileTag._ResultsFileName == _ResultsFileName))
                {
                    isRepresentingSame = true;
                }
            }

            return(isRepresentingSame);
        }
コード例 #2
0
        public void UpdateResultsFileNode(TreeNode theResultsFileTreeNode, Dvtk.Sessions.Session theSession, string theResultsFileName)
        {
            // Set the text on this script file tree node.
            theResultsFileTreeNode.Text = theResultsFileName;

            // Set the tag for this script file tree node.
            ResultsFileTag theResultsFileTag = new ResultsFileTag(theSession);
            theResultsFileTag._ResultsFileName = theResultsFileName;

            theResultsFileTreeNode.Tag = theResultsFileTag;
        }