/// <summary> /// Adds the specified item to the collection /// </summary> public new void Add(RibbonButton item) { CheckRestrictions(item as RibbonButton); item.SetOwner(Owner); item.SetOwnerPanel(OwnerPanel); item.SetOwnerTab(OwnerTab); base.Add(item); }
/// <summary> /// Adds the specified item to the collection /// </summary> public void Add(RibbonButton item) { CheckRestrictions(item as RibbonButton); item.SetOwner(Owner); item.SetOwnerPanel(OwnerPanel); item.SetOwnerTab(OwnerTab); item.SetOwnerItem(OwnerList); item.Click += new EventHandler(_ownerList.item_Click); base.Add(item); }