public override void AddItem(XnaItem xnaItem) { if (xnaItem is XnaMenuItem == false) { throw new Exception("XnaMenu only accepts XnaMenuItems, not XnaItems."); } base.AddItem(xnaItem); }
public virtual void AddItem(XnaItem xnaItem) { XnaItems.Add(xnaItem); }