Beispiel #1
0
        // ////////////////////////////// //
        //            Methods             //
        // ////////////////////////////// //

        /// Associate a new button with this base. If no other buttons have
        /// previously been associated, make it the default content.
        public void AddButton(T button)
        {
            if (AssociatedButtons.Count == 0)
            {
                SetDefault(button);
            }
            else
            {
                AssociatedButtons[button.ID] = button;
            }

            // bubble up the stack
            ParentLayer.AddButton(button);
        }