private void CheckNodeIdMI_Click(object sender, EventArgs e)
{
try
{
string nodeId = new Opc.Ua.Client.Controls.StringValueEditDlg().ShowDialog("");
if (nodeId == null)
{
return;
}
string[] parts = nodeId.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
ushort ns = Convert.ToUInt16(parts[0].Substring(2));
uint id = Convert.ToUInt32(parts[2]);
using (Session session = CreateSession())
{
new SelectNodesDlg().ShowDialog(session, new NodeId(id, ns), null);
}
}
catch (Exception exception)
{
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
}
}
}