Ejemplo n.º 1
0
 private void AddInternal(params ToolStripItem[] newItems)
 {
     this.items.AddRange(newItems);
     for (int i = 0; i < newItems.Length; i++)
     {
         SetOwner(newItems[i]);
     }
     if (owner != null)
     {
         owner.UpdateSize();
     }
 }
        private void AddInternal(params ToolStripItem[] newItems)
        {
            this.items.AddRange(newItems);
            for (int i = 0; i < newItems.Length; i++)
            {
                var item = newItems[i];
                if (item == null)
                {
                    throw new ArgumentException("item is null");
                }

                SetOwner(item);
            }

            if (owner != null)
            {
                owner.UpdateSize();
            }
        }