Ejemplo 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);
        }
Ejemplo 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);
        }