示例#1
0
        public override void AddItem(XnaItem xnaItem)
        {
            if (xnaItem is XnaMenuItem == false)
            {
                throw new Exception("XnaMenu only accepts XnaMenuItems, not XnaItems.");
            }

            base.AddItem(xnaItem);
        }
示例#2
0
 public virtual void AddItem(XnaItem xnaItem)
 {
     XnaItems.Add(xnaItem);
 }