Beispiel #1
0
        /// <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();
        }
Beispiel #2
0
        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;
                }
            }
        }
Beispiel #3
0
        /// <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();
        }