Ejemplo n.º 1
0
        /// <summary>
        /// Add a button to the factory
        /// </summary>
        /// <param name="text">Button text</param>
        /// <returns></returns>
        public GridButtonBuilder Add(string text)
        {
            GridButtonBuilder button = new GridButtonBuilder();

            this.buttons.Add(button.Text(text));

            return(button);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Add a button to the factory
        /// </summary>
        /// <param name="buttonType"></param>
        /// <returns></returns>
        public GridButtonBuilder Add(ButtonType buttonType)
        {
            GridButtonBuilder button = new GridButtonBuilder();

            button.Extend(buttonType);
            this.buttons.Add(button);

            return(button);
        }