Esempio n. 1
0
        public DialogResult Show(Namespace ns)
        {
            // Set the namespace.

            m_namespace = ns;

            // Show the properties.

            NamespacePropertyForm propertyForm = new NamespacePropertyForm(m_namespace, false);
            DialogResult          result       = propertyForm.ShowNew();

            if (result == DialogResult.OK)
            {
                m_namespace = propertyForm.Object as Namespace;
            }

            return(result);
        }
Esempio n. 2
0
        public DialogResult Show()
        {
            // Create a new Namespace.

            m_namespace = m_parent.Catalogue.CreateNamespace(m_parent, "NewNamespace");

            // Show the properties.

            NamespacePropertyForm propertyForm = new NamespacePropertyForm(m_namespace, false);
            DialogResult          result       = propertyForm.ShowNew();

            if (result == DialogResult.OK)
            {
                m_namespace = propertyForm.Object as Namespace;
            }

            return(result);
        }