Esempio n. 1
0
        /// <summary>
        /// Adds custom control - action or tab
        /// </summary>
        /// <param name="descriptorClass"></param>
        /// <returns>BsToolbarAction</returns>
        public BsToolbarAction <TToolbar> Add(string descriptorClass)
        {
            var toolbarAction = new BsToolbarAction <TToolbar>(descriptorClass, this.viewContext);

            actions.Add(toolbarAction);

            return(toolbarAction);
        }
Esempio n. 2
0
        /// <summary>
        /// Adds a default action
        /// </summary>
        /// <param name="actionType">Action type</param>
        /// <returns>BsToolbarAction</returns>
        public BsToolbarAction <TToolbar> Add(BsToolbarActionType actionType)
        {
            var toolbarAction = new BsToolbarAction <TToolbar>(actionType, this.viewContext);

            actions.Add(toolbarAction);

            return(toolbarAction);
        }