private void AddPropertyPage(PropertyPage propertyPage) { if (propertyPage == null) { throw new ArgumentNullException("propertyPage"); } this._pages.Add(propertyPage.Id, propertyPage); }
private static void ValidatePropertyPage(PropertyPage propertyPage) { if (propertyPage == null) { throw new ArgumentNullException("propertyPage"); } if (propertyPage.Initialized) { throw new InvalidOperationException(Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.PropertyPageAddAlreadyAdded)); } if (propertyPage.Control == null) { throw Microsoft.ManagementConsole.Internal.Utility.CreateArgumentException("propertyPage.Control", Microsoft.ManagementConsole.Internal.Strings.ArgumentExceptionNullValue, new object[0]); } Microsoft.ManagementConsole.Internal.Utility.CheckStringNullOrEmpty(propertyPage.Title, "Title", true); }
public void Remove(PropertyPage propertyPage) { base.List.Remove(propertyPage); }
public void Insert(int index, PropertyPage propertyPage) { ValidatePropertyPage(propertyPage); base.Insert(index, propertyPage); }
public int IndexOf(PropertyPage propertyPage) { return base.List.IndexOf(propertyPage); }
public void CopyTo(PropertyPage[] array, int index) { this.CopyTo(array, index); }
public bool Contains(PropertyPage propertyPage) { return base.List.Contains(propertyPage); }
public int Add(PropertyPage propertyPage) { ValidatePropertyPage(propertyPage); return base.List.Add(propertyPage); }
public PropertyPageContainerControl(PropertyPage ownerPage) { this._ownerPage = ownerPage; }
private void RemovePropertyPage(PropertyPage propertyPage) { if (propertyPage == null) { throw new ArgumentNullException("propertyPage"); } this._pages.Remove(propertyPage.Id); if (this._initPageCount == 0) { this._pages.Clear(); this._manager.RemovePropertySheet(this); } }