コード例 #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);
        }
コード例 #2
0
        /// <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;
        }
コード例 #3
0
        /// <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;
        }
コード例 #4
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);
 }