Example #1
0
        public SelectParameters(UIApplication app, ExternalEvent exEvent, ExternalEventHandler handler)
        {
            InitializeComponent();
            this.App  = app;
            m_ExEvent = exEvent;
            m_Handler = handler;

            //Fill groups names comboBox
            GetGroupsNames();
        }
Example #2
0
        public void ShowForm(UIApplication uiapp)
        {
            // If we do not have a dialog yet, create and show it
            if (m_MyForm == null || !m_MyForm.IsActive)
            {
                // A new handler to handle request posting by the dialog
                ExternalEventHandler handler = new ExternalEventHandler(uiapp);

                // External Event for the dialog to use (to post requests)
                ExternalEvent exEvent = ExternalEvent.Create(handler);

                // We give the objects to the new dialog;
                // The dialog becomes the owner responsible fore disposing them, eventually.
                m_MyForm = new SelectParameters(uiapp, exEvent, handler);
                m_MyForm.Show();
            }
        }