private void ChangeViewBTN_Click(object sender, EventArgs e) { try { ViewDescription view = null; ReferenceDescription reference = ViewCB.SelectedItem as ReferenceDescription; if (reference != null && !NodeId.IsNull(reference.NodeId)) { view = new ViewDescription(); view.ViewId = ExpandedNodeId.ToNodeId(reference.NodeId, m_session.NamespaceUris); view.ViewVersion = 0; view.Timestamp = DateTime.MinValue; } BrowseCTRL.View = view; BrowseCTRL.RefreshSelection(); } catch (Exception exception) { ClientUtils.HandleException(this.Text, exception); } }
/// <summary> /// The reference for the parent of the currently selected node. /// </summary> public void RefreshSelection() { BrowseCTRL.RefreshSelection(); }