示例#1
0
        /// <summary>
        /// Adds new button element with custom color.
        /// </summary>
        /// <param name="text">The text.</param>
        /// <param name="color">The color.</param>
        /// <returns>The created element.</returns>
        public ButtonElement Button(string text, Color color)
        {
            ButtonElement element = new ButtonElement();

            element.Init(text, color);
            OnAddElement(element);
            return(element);
        }
示例#2
0
        /// <summary>
        /// Adds new button element.
        /// </summary>
        /// <param name="text">The text.</param>
        /// <returns>The created element.</returns>
        public ButtonElement Button(string text)
        {
            var element = new ButtonElement();

            element.Init(text);
            OnAddElement(element);
            return(element);
        }