Example #1
0
        /// <summary>
        /// Displays the dialog.
        /// </summary>
        public ReferenceDescription ShowDialog(Browser browser, NodeId rootId)
        {
            if (browser == null)
            {
                throw new ArgumentNullException("browser");
            }

            BrowseCTRL.SetRoot(browser, rootId);

            NamespaceUriCB.Items.Clear();
            foreach (string uri in browser.Session.NamespaceUris.ToArray())
            {
                NamespaceUriCB.Items.Add(uri);
            }

            OkBTN.IsEnabled = false;

            return(m_reference);
        }
Example #2
0
        /// <summary>
        /// Displays the dialog.
        /// </summary>
        public ReferenceDescription ShowDialog(Browser browser, NodeId rootId)
        {
            if (browser == null)
            {
                throw new ArgumentNullException("browser");
            }

            BrowseCTRL.SetRoot(browser, rootId);

            NamespaceUriCB.Items.Clear();
            NamespaceUriCB.Items.AddRange(browser.Session.NamespaceUris.ToArray());

            OkBTN.Enabled = false;

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

            return(m_reference);
        }