Пример #1
0
        public PropertyPageProjectOptions()
        {
#if DESIGN_TIME
            Debug.Assert(false);
#endif
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            m_genStubsControlsArray = new ArrayList();
            m_genStubsControlsArray.Add(setStubGenDirectoryButton);
            m_genStubsControlsArray.Add(createStubFilesInThisDirectoryTextBox);
            m_genStubsControlsArray.Add(createStubFilesInThisDirectoryLabel);
            m_genStubsControlsArray.Add(rootNameForNativeStubFilesLabel);
            m_genStubsControlsArray.Add(rootNameForNativeStubFilesTextBox);

            //
            // need to add any constructor code after InitializeComponent call
            //

            m_propertyDeployPort   = new PropertyDeployPort(m_cbDeployPort);
            m_propertyDeployDevice = new PropertyDeployDevice(m_cbDeployDevice);

            m_propertyGenerateStubsChkBox = new PropertyGenStubsChkBox(generateNativeStubsForInternalMethodsCheckBox);
            m_propertyRootStubNameTextBox = new PropertyGenStubsRootNameTextBox(rootNameForNativeStubFilesTextBox);
            m_propertyStubGenDirTextBox   = new PropertyGenStubsDirectoryTextBox(createStubFilesInThisDirectoryTextBox);

#if !DESIGN_TIME
            AddProperty(m_propertyDeployPort);
            AddProperty(m_propertyDeployDevice);

            AddProperty(m_propertyGenerateStubsChkBox);
            AddProperty(m_propertyRootStubNameTextBox);
            AddProperty(m_propertyStubGenDirTextBox);
#endif
            this.EnableGenStubs();
        }
        public PropertyPageProjectOptions()
        {
#if DESIGN_TIME
            Debug.Assert(false);
#endif
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            m_genStubsControlsArray = new ArrayList();
            m_genStubsControlsArray.Add(setStubGenDirectoryButton);
            m_genStubsControlsArray.Add(createStubFilesInThisDirectoryTextBox);
            m_genStubsControlsArray.Add(createStubFilesInThisDirectoryLabel);
            m_genStubsControlsArray.Add(rootNameForNativeStubFilesLabel);
            m_genStubsControlsArray.Add(rootNameForNativeStubFilesTextBox);

            //
            // need to add any constructor code after InitializeComponent call
            //

            m_propertyDeployPort = new PropertyDeployPort(m_cbDeployPort);
            m_propertyDeployDevice = new PropertyDeployDevice(m_cbDeployDevice);

            m_propertyGenerateStubsChkBox = new PropertyGenStubsChkBox(generateNativeStubsForInternalMethodsCheckBox);
            m_propertyRootStubNameTextBox = new PropertyGenStubsRootNameTextBox(rootNameForNativeStubFilesTextBox);
            m_propertyStubGenDirTextBox = new PropertyGenStubsDirectoryTextBox(createStubFilesInThisDirectoryTextBox);

#if !DESIGN_TIME
            AddProperty(m_propertyDeployPort);
            AddProperty(m_propertyDeployDevice);

            AddProperty(m_propertyGenerateStubsChkBox);
            AddProperty(m_propertyRootStubNameTextBox);
            AddProperty(m_propertyStubGenDirTextBox);
#endif
            this.EnableGenStubs();
        }