internal void InternalInitialize() { this._containerControl = new PropertyPageContainerControl(this); if (this._containerControl == null) { throw new InvalidOperationException(Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.PropertyPageInternalInitializeNullContainer)); } this._containerControl.Dock = DockStyle.Fill; this._containerControl.HandleCreated += new EventHandler(this.OnHandleCreated); this._containerControl.Controls.Add(this.Control); this._containerControl.CreateControl(); this._initialized = true; this.OnInitialize(); }
internal void InternalDestroy() { this._destroyed = true; this.OnDestroy(); if (this._control != null) { this._control.Dispose(); } if (this._containerControl != null) { this._containerControl.Dispose(); } this._control = null; this._containerControl = null; }