コード例 #1
0
        /// <summary>
        /// Constructor for the page.
        /// </summary>
        public MachinePropertyPage(SharedDataItem parentSharedDataItem)
        {
            sharedDataItem = parentSharedDataItem;

            // setup property page container stuff
            this.Title = "Property Sheet Extension Sample";

            // setup contained control and hand it a reference to its parent (This propertypage)
            machinePropertiesControl = new MachinePropertiesControl(this);
            this.Control = machinePropertiesControl;
        }
コード例 #2
0
            this.Control = machinePropertiesControl;
        }

		/// <summary>
		/// Initialize notification for the page. Default implementation is empty.
		/// </summary>
		protected override void OnInitialize()
		{
            machinePropertiesControl.RefreshData(sharedDataItem);
        }

		/// <summary>
		/// Sent to every page in the property sheet to indicate that the user has clicked 
		/// the Apply button and wants all changes to take effect.