Example #1
0
 public void ValidateUniqueName(INamedObjectCollection container, INamedObject namedObject, string proposedName)
 {
     this.ValidateName(proposedName);
     if (this.NameExist(container, namedObject, proposedName))
     {
         throw new NameValidationException(System.Design.SR.GetString("CM_NameExist", new object[] { proposedName }));
     }
 }
 public string CreateUniqueName(INamedObjectCollection container, string proposed)
 {
     if (!this.NameExist(container, proposed))
     {
         this.ValidateName(proposed);
         return proposed;
     }
     return this.CreateUniqueName(container, proposed, 1);
 }
Example #3
0
 public string CreateUniqueName(INamedObjectCollection container, string proposed)
 {
     if (!this.NameExist(container, proposed))
     {
         this.ValidateName(proposed);
         return(proposed);
     }
     return(this.CreateUniqueName(container, proposed, 1));
 }
 public string CreateUniqueName(INamedObjectCollection container, string proposedNameRoot, int startSuffix)
 {
     return this.CreateUniqueNameOnCollection(container, proposedNameRoot, startSuffix);
 }
 public string CreateUniqueName(INamedObjectCollection container, Type type)
 {
     return this.CreateUniqueName(container, type.Name, 1);
 }
 public void ValidateUniqueName(INamedObjectCollection container, INamedObject namedObject, string proposedName)
 {
     this.ValidateName(proposedName);
     if (this.NameExist(container, namedObject, proposedName))
     {
         throw new NameValidationException(System.Design.SR.GetString("CM_NameExist", new object[] { proposedName }));
     }
 }
 public void ValidateUniqueName(INamedObjectCollection container, string proposedName)
 {
     this.ValidateUniqueName(container, null, proposedName);
 }
Example #8
0
 public static INamedObject Find(INamedObjectCollection coll, string name)
 {
     return(Find(coll, name, false));
 }
 public static INamedObject Find(INamedObjectCollection coll, string name)
 {
     return Find(coll, name, false);
 }
Example #10
0
 public string CreateUniqueName(INamedObjectCollection container, string proposedNameRoot, int startSuffix)
 {
     return(this.CreateUniqueNameOnCollection(container, proposedNameRoot, startSuffix));
 }
Example #11
0
 public string CreateUniqueName(INamedObjectCollection container, Type type)
 {
     return(this.CreateUniqueName(container, type.Name, 1));
 }
Example #12
0
 public void ValidateUniqueName(INamedObjectCollection container, string proposedName)
 {
     this.ValidateUniqueName(container, null, proposedName);
 }