Пример #1
0
 public void Insert(int index, CaptionLabel itemType)
 {
     itemType.SetOwner(Owner);
     if (string.IsNullOrEmpty(itemType.Name))
     {
         itemType.Name = GetUniqueName();
     }
     List.Insert(index, itemType);
 }
Пример #2
0
 public int Add(CaptionLabel itemType)
 {
     itemType.SetOwner(Owner);
     if (string.IsNullOrEmpty(itemType.Name))
     {
         itemType.Name = GetUniqueName();
     }
     return(List.Add(itemType));
 }