コード例 #1
0
ファイル: NewEventTypeWizard.cs プロジェクト: formist/LinkMe
        public DialogResult Show(EventType eventType)
        {
            // Set the event.

            m_eventType = eventType;

            // Show the properties.

            EventTypePropertyForm propertyForm = new EventTypePropertyForm(m_eventType, false);
            DialogResult          result       = propertyForm.ShowNew();

            if (result == DialogResult.OK)
            {
                m_eventType = propertyForm.Object as EventType;
            }

            return(result);
        }
コード例 #2
0
ファイル: NewEventTypeWizard.cs プロジェクト: formist/LinkMe
        public DialogResult Show()
        {
            // Create a new Event.

            m_eventType = m_catalogue.CreateEventType(m_catalogue, "NewEvent");

            // Show the properties.

            EventTypePropertyForm propertyForm = new EventTypePropertyForm(m_eventType, false);
            DialogResult          result       = propertyForm.ShowNew();

            if (result == DialogResult.OK)
            {
                m_eventType = propertyForm.Object as EventType;
            }

            return(result);
        }