예제 #1
0
        /// <summary>
        /// Displays the dialog.
        /// </summary>
        public IList <ILocalNode> ShowDialog(Session session, NodeId rootId, IList <NodeId> nodeIds)
        {
            BrowseCTRL.Initialize(session, rootId, null, null, BrowseDirection.Forward);
            ReferencesCTRL.Initialize(session, rootId);
            AttributesCTRL.Initialize(session, rootId);
            NodesCTRL.Initialize(session, nodeIds);

            if (ShowDialog() != DialogResult.OK)
            {
                return(null);
            }

            return(NodesCTRL.GetNodeList());
        }
예제 #2
0
        /// <see cref="BaseListCtrl.SelectItems" />
        protected override void SelectItems()
        {
            base.SelectItems();

            ILocalNode node = GetSelectedTag(0) as ILocalNode;

            if (node == null)
            {
                return;
            }

            // update attributes control.
            if (AttributesCTRL != null)
            {
                AttributesCTRL.Initialize(m_session, node.NodeId);
            }

            // update references control.
            if (ReferencesCTRL != null)
            {
                ReferencesCTRL.Initialize(m_session, node.NodeId);
            }
        }
예제 #3
0
        /// <see cref="BaseTreeCtrl.SelectNode" />
        protected override void SelectNode()
        {
            base.SelectNode();

            ReferenceDescription reference = NodesTV.SelectedNode.Tag as ReferenceDescription;

            if (reference == null)
            {
                return;
            }

            // update attributes control.
            if (AttributesCTRL != null)
            {
                AttributesCTRL.Initialize(m_session, reference.NodeId);
            }

            // update references control.
            if (ReferencesCTRL != null)
            {
                ReferencesCTRL.Initialize(m_session, reference.NodeId);
            }
        }