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); } }
/// <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()); }
/// <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; } }
/// <summary> /// Returns the attribute at the specified index. /// </summary> public ReadValueId GetSelectedAttribute(int index) { return(AttributesCTRL.GetSelectedAttribute(index)); }