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