Beispiel #1
0
        public DialogResult Show(Source source)
        {
            // Set the source.

            m_source = source;

            // Show the properties.

            SourcePropertyForm propertyForm = new SourcePropertyForm(m_source, false);
            DialogResult       result       = propertyForm.ShowNew();

            if (result == DialogResult.OK)
            {
                m_source = propertyForm.Object as Source;
            }

            return(result);
        }
Beispiel #2
0
        public DialogResult Show()
        {
            // Create a new Source.

            m_source = m_parent.Catalogue.CreateSource(m_parent, "NewSource", null);

            // Show the properties.

            SourcePropertyForm propertyForm = new SourcePropertyForm(m_source, false);
            DialogResult       result       = propertyForm.ShowNew();

            if (result == DialogResult.OK)
            {
                m_source = propertyForm.Object as Source;
            }

            return(result);
        }