Exemplo n.º 1
0
        /// <summary>
        /// Displays the dialog.
        /// </summary>
        public void Show(
            Session session,
            NodeId typeId)
        {
            if (session == null)
            {
                throw new ArgumentNullException("session");
            }

            m_session = session;

            TypeNavigatorCTRL.Initialize(m_session, typeId);
            TypeHierarchyCTRL.Initialize(m_session, typeId);

            Show();
            BringToFront();
        }
Exemplo n.º 2
0
        private void TypeNavigatorCTRL_TypeSelected(object sender, TypeNavigatorEventArgs e)
        {
            try {
                m_selectedType = e.Node;

                if (m_selectedType != null)
                {
                    TypeHierarchyCTRL.Initialize(m_session, m_selectedType.NodeId);
                }
                else
                {
                    TypeHierarchyCTRL.Initialize(m_session, null);
                }
            } catch (Exception exception) {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }