Ejemplo n.º 1
0
        /// <summary>
        /// Virtual method that is called to get the extension pages.
        /// </summary>
        /// <param name="propertyPageCollection">Page collection.</param>
        protected override void OnAddPropertyPages(PropertyPageCollection propertyPageCollection)
        {
            // add extension page.
            MachinePropertyPage machinePropertyPage = new MachinePropertyPage(sharedDataItem);

            propertyPageCollection.Add(machinePropertyPage);
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="parentPropertyPage">Container property page for the control</param>
        public MachinePropertiesControl(MachinePropertyPage parentPropertyPage)
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // keep reference to parent
            machinePropertyPage = parentPropertyPage;
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="parentPropertyPage">Container property page for the control</param>
        public MachinePropertiesControl(MachinePropertyPage parentPropertyPage)
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // keep reference to parent
            machinePropertyPage = parentPropertyPage;
        }
 /// <summary>
 /// Virtual method that is called to get the extension pages.  
 /// </summary>
 /// <param name="propertyPageCollection">Page collection.</param>
 protected override void OnAddPropertyPages(PropertyPageCollection propertyPageCollection)
 {
     // add extension page.
     MachinePropertyPage machinePropertyPage = new MachinePropertyPage(sharedDataItem);
     propertyPageCollection.Add(machinePropertyPage);
 }