예제 #1
0
파일: Main.cs 프로젝트: top501/DVTK-1
        /// <summary>
        /// Update the results navigator by adding new nodes representing newly validated
        /// Structured Report(s) and associated views.
        /// </summary>
        private void UpdateResultsNavigator()
        {
            Dvtk.StructuredReportValidator.ResultsNavigator.StructuredReportNode structuredReportNode = new Dvtk.StructuredReportValidator.ResultsNavigator.StructuredReportNode(srFilename, this.htmlFolder);

            treeViewResults.Nodes.Add(structuredReportNode);

            structuredReportNode.SelectDefaultView();
        }
예제 #2
0
파일: Main.cs 프로젝트: top501/DVTK-1
        private void treeViewResults_MouseUp(object sender, MouseEventArgs e)
        {
            TreeNode oldSelectedNode = null;

            // Show menu only if the right mouse button is clicked.
            if (e.Button == MouseButtons.Right)
            {
                // Point where the mouse is clicked.
                Point p = new Point(e.X, e.Y);

                // Get the node that the user has clicked.
                TreeNode node = treeViewResults.GetNodeAt(p);
                if (node != null)
                {
                    // Select the node the user has clicked.
                    // The node appears selected until the menu is displayed on the screen.
                    oldSelectedNode = treeViewResults.SelectedNode;
                    treeViewResults.SelectedNode = node;

                    // Find the appropriate ContextMenu depending on the selected node.
                    if (node is Dvtk.StructuredReportValidator.ResultsNavigator.StructuredReportNode)
                    {
                        Dvtk.StructuredReportValidator.ResultsNavigator.StructuredReportNode structuredReportNode = node as Dvtk.StructuredReportValidator.ResultsNavigator.StructuredReportNode;
                        structuredReportNode.ShowContextMenu(treeViewResults, p);
                    }

                    //// Highlight the selected node.
                    //treeViewResults.SelectedNode = oldSelectedNode;
                    //oldSelectedNode = null;
                }
            }
        }
예제 #3
0
파일: Main.cs 프로젝트: ewcasas/DVTK
        /// <summary>
        /// Update the results navigator by adding new nodes representing newly validated 
        /// Structured Report(s) and associated views.
        /// </summary>
        private void UpdateResultsNavigator()
        {
            Dvtk.StructuredReportValidator.ResultsNavigator.StructuredReportNode structuredReportNode = new Dvtk.StructuredReportValidator.ResultsNavigator.StructuredReportNode(srFilename, this.htmlFolder);

            treeViewResults.Nodes.Add(structuredReportNode);

            structuredReportNode.SelectDefaultView();
        }