/// <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); }
/// <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); }