Exemplo n.º 1
0
 private void OkBTN_Click(object sender, EventArgs e)
 {
     try {
         AttributesCTRL.Initialize(m_session, m_nodeId);
     } catch (Exception exception) {
         GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
     }
 }
Exemplo n.º 2
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());
        }
Exemplo n.º 3
0
        /// <summary>
        /// Displays the dialog.
        /// </summary>
        public void ShowDialog(Session session, ExpandedNodeId nodeId)
        {
            if (session == null)
            {
                throw new ArgumentNullException("session");
            }
            if (nodeId == null)
            {
                throw new ArgumentNullException("nodeId");
            }

            m_session = session;
            m_nodeId  = nodeId;

            AttributesCTRL.Initialize(session, nodeId);

            if (ShowDialog() != DialogResult.OK)
            {
                return;
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// Returns the attribute at the specified index.
 /// </summary>
 public ReadValueId GetSelectedAttribute(int index)
 {
     return(AttributesCTRL.GetSelectedAttribute(index));
 }