Exemplo n.º 1
0
        public BsBulkSelector AddSelector(BsBulkSelectorType type)
        {
            var bulkSelector = new BsBulkSelector(type, viewContext);

            this.AddSelector(bulkSelector);
            return(bulkSelector);
        }
Exemplo n.º 2
0
        private BsBulkSelector GetBulkSelector(BsBulkSelectorType type)
        {
            var bulkSelector = this.selectors.FirstOrDefault(x => x.Type == type);

            if (bulkSelector == null)
            {
                throw new ArgumentException("No bulk selector found with the specified type");
            }

            return(bulkSelector);
        }
Exemplo n.º 3
0
        public BsBulkSelector(BsBulkSelectorType type, ViewContext viewContext)
            : base(viewContext)
        {
            this.renderer = new BsBulkSelectorRenderer(this);

            switch (type)
            {
            case BsBulkSelectorType.All:
                this.Type       = BsBulkSelectorType.All;
                this.text       = "All";
                this.styleClass = "js-all";
                break;

            case BsBulkSelectorType.None:
                this.Type       = BsBulkSelectorType.None;
                this.text       = "None";
                this.styleClass = "js-none";
                break;
            }
        }
Exemplo n.º 4
0
        public BsBulkSelector(BsBulkSelectorType type, ViewContext viewContext)
            : base(viewContext)
        {
            this.renderer = new BsBulkSelectorRenderer(this);

            switch (type)
            {
                case BsBulkSelectorType.All:
                    this.Type = BsBulkSelectorType.All;
                    this.text = "All";
                    this.styleClass = "js-all";
                    break;

                case BsBulkSelectorType.None:
                    this.Type = BsBulkSelectorType.None;
                    this.text = "None";
                    this.styleClass = "js-none";
                    break;
            }
        }
Exemplo n.º 5
0
        public BsBulkSelector ForSelector(BsBulkSelectorType type)
        {
            BsBulkSelector bulkSelector = this.GetBulkSelector(type);

            return(bulkSelector);
        }
Exemplo n.º 6
0
 public BsBulkSelector AddSelector(BsBulkSelectorType type)
 {
     var bulkSelector = new BsBulkSelector(type, viewContext);
     this.AddSelector(bulkSelector);
     return bulkSelector;
 }
Exemplo n.º 7
0
        private BsBulkSelector GetBulkSelector(BsBulkSelectorType type)
        {
            var bulkSelector = this.selectors.FirstOrDefault(x => x.Type == type);

            if (bulkSelector == null)
            {
                throw new ArgumentException("No bulk selector found with the specified type");
            }

            return bulkSelector;
        }
Exemplo n.º 8
0
 public BsBulkSelector ForSelector(BsBulkSelectorType type)
 {
     BsBulkSelector bulkSelector = this.GetBulkSelector(type);
     return bulkSelector;
 }