Exemplo n.º 1
0
        public int Add(ToolStripItem value)
        {
            CheckCanAddOrInsertItem(value);

            SetOwner(value);
            int retVal = InnerList.Add(value);

            if (_itemsCollection && _owner != null)
            {
                _owner.OnItemAddedInternal(value);
                _owner.OnItemAdded(new ToolStripItemEventArgs(value));
            }
            return(retVal);
        }