Esempio n. 1
0
 private void AddPropertyPage(PropertyPage propertyPage)
 {
     if (propertyPage == null)
     {
         throw new ArgumentNullException("propertyPage");
     }
     this._pages.Add(propertyPage.Id, propertyPage);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public void Remove(PropertyPage propertyPage)
 {
     base.List.Remove(propertyPage);
 }
Esempio n. 4
0
 public void Insert(int index, PropertyPage propertyPage)
 {
     ValidatePropertyPage(propertyPage);
     base.Insert(index, propertyPage);
 }
Esempio n. 5
0
 public int IndexOf(PropertyPage propertyPage)
 {
     return base.List.IndexOf(propertyPage);
 }
Esempio n. 6
0
 public void CopyTo(PropertyPage[] array, int index)
 {
     this.CopyTo(array, index);
 }
Esempio n. 7
0
 public bool Contains(PropertyPage propertyPage)
 {
     return base.List.Contains(propertyPage);
 }
Esempio n. 8
0
 public int Add(PropertyPage propertyPage)
 {
     ValidatePropertyPage(propertyPage);
     return base.List.Add(propertyPage);
 }
 public PropertyPageContainerControl(PropertyPage ownerPage)
 {
     this._ownerPage = ownerPage;
 }
Esempio n. 10
0
 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);
     }
 }